PDA

View Full Version : Scroll to bottom in GridPanel



Novasib.AE
26 Nov 2010, 5:45 AM
Hi,
i hope anyone can help me.

How can i scroll to the bottom of a GridPanel without focus on it.
There is a function for the GridView -> scrollToTop() but not to the bottom.

regads

Condor
26 Nov 2010, 8:07 AM
var scroller = grid.getView().scroller.dom;
scroller.scrollTop = scroller.scrollHeight - scroller.clientHeight;
Disclaimer: Completely untested code!

Novasib.AE
26 Nov 2010, 1:02 PM
Works fine.

Thank you! :)