extjsgridextjs4

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 the id in an ExtJS GridPanel?


Solution

  • use store.indexOf method:

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