Skip to content

Instantly share code, notes, and snippets.

@huguogang
Created January 16, 2014 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save huguogang/8464189 to your computer and use it in GitHub Desktop.
Save huguogang/8464189 to your computer and use it in GitHub Desktop.
//handles ExtJS grid select event
//grid should have selType = 'cellmodel'
onGridSelect: function(sel, rec, row, col, opts) {
var selection = sel.nextSelection;
var dataIndex = selection.view.getGridColumns()[col].dataIndex;
var data = rec.get(dataIndex);
//...your event handler code here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment