Extjs - Scroll to last row (selected item) - Rqgg

bookmarkalikeInternet και Εφαρμογές Web

14 Δεκ 2013 (πριν από 4 χρόνια και 18 μέρες)

306 εμφανίσεις

Extjs - Scroll to last row (selected item)
Asked by
Freestyle
on 2013-06-24T21:45:05-04:00
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 items i want scroll of window to last
thanks

Best Answer
Answer by
User1896597
on 2013-06-24T23:11:54-04:00
Have you looked at this:

http://stackoverflow.com/questions/2633421/extjs-how-do-i-scroll-to-the-bottom-of-a-grid

Archives
Technology
Programmers
Jun 24th, 2013
Week 26, 2013
June, 2013
Related
In an ExtJS Grids actioncolumn, how do I make use of the v parameter thats passed to
getClass/getTip?
Static grid with dynamic data on button click in extjs4
ExtJS lazy combo initial value
Extjs gridpanel performance issue with local data
Extjs Store DataModel Subfield Null Error
How to set selected row in default when grid load using checkboxmodel
Button for each group in a grid
Change the style of a grid row when checkcolumn is checked in Extjs4
How does extjs Ext.require() works
How to MASK the Extjs Grid while setting the record data and unmask after set?
View Online
http://www.rqgg.net/topic/qiqhu-extjs-scroll-to-last-row-selected-item.html
Rqgg
Page 1/1