How do you get the row-index (position) of a row by the id in an ExtJS GridPanel?
use store.indexOf method:
var record = store.getNodeById(id),
rowIndex = store.indexOf(record);
Ext.data.Store.indexOfId
var rowIndex = store.indexOfId(id);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With