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

extjs, extjs4, grid

Solution

use store.indexOf method:

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

Problem

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

Original source