I am new to Sencha Touch development, so I might miss something really basic here.
I have Ext.List with a Ext.data.JsonStore. And I am trying to load new Items / Records when the end of the list is reached. I can't find any Event for that?
Printable View
I am new to Sencha Touch development, so I might miss something really basic here.
I have Ext.List with a Ext.data.JsonStore. And I am trying to load new Items / Records when the end of the list is reached. I can't find any Event for that?
I think you're going to have to listen to the scroll events from the scroller element.
Thank you for your reply!
Where would I find the scroller element? I cannot find anything about that in the API Documentation.
You can find it here:
http://dev.sencha.com/deploy/touch/d....util.Scroller
Thank you!
The Solution seems to be:
Code:list.scroller.addListener('scrollend', function(scroller, offset){
if((list.el.dom.scrollHeight-offset.y)== list.height) {
console.log('listend');
}
});
Hello,
I am new to Extjs. Even I am trying to implement an endless scroller on my grid with json data.
Kindly guide where and how I should be using the code given by you above.
Many thanks for the help.