PDA

View Full Version : Infinite scroll and MVC



zerkms
25 Apr 2012, 8:21 PM
Let's say we follow an original article http://www.sencha.com/learn/the-mvc-application-architecture and have such store:



Ext.define('AM.store.Users', {
extend: 'Ext.data.Store',
model: 'AM.model.User',
autoLoad: true,

proxy: {
type: 'ajax',
url: 'data/users.json',
reader: {
type: 'json',
root: 'users',
successProperty: 'success'
}
}
});

And we decided to implement an infinite scrolling grid. To do that we need to remove `autoLoad: true` and invoke `store.guaranteeRange(...)` manually.


So what is the best place for doing so?

khmurach
26 Apr 2012, 12:16 PM
Demo here http://ext4all.com/post/extjs-4-1-grid-infinite-scroll-in-mvc

webfriend13
26 Apr 2012, 6:48 PM
I think following links would help you.

http://www.sencha.com/blog/infinite-grid-scrolling-in-ext-js-4

And this is a must read.

http://www.sencha.com/forum/showthread.php?185483-Grid-buffered-infinite-scrolling-in-4.1

I hope this information will help you.

zerkms
26 Apr 2012, 6:49 PM
Actually I just migrated to 4.1 everything became good

Thanks :-)