View Full Version : How to control the scroll?

18 Mar 2011, 2:24 AM
I'm trying to control the scroll of a panel (treepanel, gridpanel, etc). I want to know things like position, define size by number of elements, etc. I want to do this because I want to introduce data dinamically.
Any body know how can I define and take the scroll controll? I'm startig with this example, to see how go inside this function when I do scroll, but doesn't work:

treePanel.scroller.on('scroll', function(scroller, offsets){
var i=0;
var x=0;

Thank you very much for your help!