Created
January 16, 2014 21:54
-
-
Save huguogang/8464189 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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