public/javascripts/inputex/js/widgets/DataTable.js
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
		});
		
	}
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
		});
		
	}
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 } ) ; }
Opens the Dialog to edit the row
Called when the user clicked on modify button
Opens the Dialog to edit the row Called when the user clicked on modify button