Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get selected record in ExtJS 4.2.1
getSelectedRecord: function() {
var grid = this.getGrid(),
records = grid.getSelectionModel().getSelection(),
if(records.length) {
// get first record from selection
record = records[0];
// find selection record in store
record = grid.getStore().getById(record.getId());
if(record) return record;
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.