code: function(rowIndex) {
  
        if(!this.dialog) {
           this.renderDialog();
        }
  
        // NOT Inserting new record
  		this.insertNewRecord = false;
  		
  		// Set the selected Record
  		this.selectedRecord = rowIndex;
  		
  		// Get the selected Record
  		var record = this.datatable.getRecord(this.selectedRecord);
  		
  		this.dialog.whenFormAvailable({
  			fn: function() {
  				this.dialog.setValue(record.getData());
  				this.dialog.show();
  			},
  			scope: this
  		});
  		
  	}
docs: Opens the Dialog to edit the row
  Called when the user clicked on modify button