Skip to content

Instantly share code, notes, and snippets.

@PEM-FR
Created April 5, 2011 09:11
Show Gist options
  • Save PEM-FR/903295 to your computer and use it in GitHub Desktop.
Save PEM-FR/903295 to your computer and use it in GitHub Desktop.
Grid connect on Row Clicks
this.connect(
this.someGrid,
"onRowDblClick",
this,
function(e){
var grid = this.someGrid;
var rowIndex = grid.selection.selectedIndex;
var myStoreItem = grid.getItem(rowIndex);
this.someCallbackFunction(myStoreItem);
}
);
this.connect(
this.someGrid,
"onRowClick",
this,
function(rowIndex){
this.someCallbackFunction(rowIndex);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment