Given a TreeModel, I want to focus on the row that represents the model in TreeGrid.
Normally with regular Grid, I do
For TreeGrid, I changed toCode:int index = grid.getStore().indexOf(m); grid.getView().focusRow(index);
But indexOf returns the index in parent, not the index in grid so the focus is off.Code:int index = grid.getTreeStore().indexOf(m); grid.getTreeView().focusRow(index);
How do I get the row index in grid? Or how do I get view to focus on a model?