I want to scroll to last row or selected item or rowIndex
I try some case like:
grid.setScrollTop(rowIndex); // not working
grid.getView().focusRow(rowIndex);// not working
// not working
var idx = this.getStore().indexOfId(rowIndex);
var rowEl = this.getView().getRow(idx);
rowEl.scrollIntoView(this.getGridEl(), false);
all of them are not working, how can i do that thanks
Edit:
I have a window include a gridpanel and when i add a new item i want scroll of window to last thanks
Edit 2:
see my example: http://jsfiddle.net/h9Dy9/ When i add some new items scroll of window must move to last or select items.