PDA

View Full Version : Scrolling event on custom gridpanel



advah
28 Oct 2012, 1:07 AM
Hi,

Using Ext JS 4.07
I have a custom gridpanel and I want to load more and more records as I'm scrolling down (paging) I got the functionality working when clicking a button, but I really want to use the grid scrollbar for that.

I tried to add the following code according to that threat:http://www.sencha.com/forum/showthread.php?223498-Scroll-Event-on-Ext-Component&p=904788
(http://www.sencha.com/forum/showthread.php?223498-Scroll-Event-on-Ext-Component&p=904788)

listeners: { scroll: { element: 'el', fn: function(){ console.log('scrolling', arguments); } } }

But it doesn't invoke.

Any other ways for doing that?
Thanks

Animal
28 Oct 2012, 11:29 AM
You will need to upgrade to 4.1.3 and use a buffered store.

This loads records from the remote source incrementally.

See your SDK's examples/grid/infinite-scroll.html example