-
6 May 2012 11:50 PM #1
GridPanel Scroll
GridPanel Scroll
Hi
i am trying to scroll to the last Element of a GridPanel, the last Element is allready focused by
_this.testpanel.getSelectionModel().selectLastRow( );
I have tryed many ways but non of them worked...
The GridPanel is saved via _this.testpanel =new Ext.grid.GridPanel(...
In the load function i tried
_this.testpanel.getRow(_this.receiver_list.getStore().getCount()-1).scrollIntoView(_this.receiver_list.getView(),false);
This one does nothing.
_this.receiver_list.getView().getRow(_this.receiver_list.getStore().getCount()-1).scrollIntoView("receiver_list");
This one scrolls the Form, the GrindPanel is inside.
Please Help me, i´m nearly freaking out with this!
Thx Ritter
-
7 May 2012 5:24 AM #2
Please have a look at :
Regards,Code:grid.getSelectionModel().selectRow(row); grid.view.focusCell(row, 0, true);
Scott.
-
7 May 2012 6:16 AM #3
Thanks for your reply Scott, the Problem is not that i cant focus.
I just cant see the focus befor i scroll down.
So i want to scroll down automatic.
Thanks for the help!
-
16 May 2012 1:19 PM #4
To clarify this, you want to scroll down to the last record that is focused? Have you tried this code?
Please be more specific if I have missed your request:
Scott.Code:text: 'Go bottom', handler: function() { var lastRecord = grid.store.getCount()-1; // same as selectLastRow(); grid.getSelectionModel().selectRow(lastRecord); grid.view.focusCell(lastRecord, 0, true); }
-
17 Jul 2012 2:11 PM #5
Try this
Code:text: 'Go bottom', handler: function() { var lastRecord = grid.store.getCount()-1; grid.getSelectionModel().selectRow(lastRecord); grid.getView().focusRow(lastRecord); }
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote