0

I am trying to scroll to the last Element of a GridPanel, the last Element is already focused by

_this.testpanel.getSelectionModel().selectLastRow( );

I have tried many ways but none 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. But not in the GridPanel itself.

RivieraKid
  • 5,923
  • 4
  • 38
  • 47

2 Answers2

0

Take a look at the following function

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.Panel-method-setScrollTop

sha
  • 17,824
  • 5
  • 63
  • 98
0

Use scrollTo() Elements method.

s.webbandit
  • 16,332
  • 16
  • 58
  • 82