Extjs 4 GridPanel: how can I get the row index (position) of an element by id

How do you get the row index (position) of a row by id in ExtJS GridPanel?

+7
source share
2 answers

use the store.indexOf method:

var record = store.getNodeById(id), rowIndex = store.indexOf(record); 
+15
source

Ext.data.Store.indexOfId

 var rowIndex = store.indexOfId(id); 
+5
source

All Articles