View Full Version : How can I use localstorage for my grid with infinite scroll?

23 Aug 2012, 1:12 AM
Hi, excuse me for my bad English, this is not my native language.
I want to ask you about localstorage and infinite grid. I use Ext 4.1. I connected localstorage to my grid and I can use CRUD operation with it. But I want also create infinite scroll into my grid. I used this part of code into my grid:

verticalScrollerType: 'paginggridscroller',
loadMask: true,
disableSelection: true,
invalidateScrollerOnRefresh: false,
viewConfig: {trackOver: false}

and this is my store

Ext.define('GB.store.LocalStorage', { extend: 'Ext.data.Store',
model: 'GB.model.Message',
pageSize: 15,
// allow the grid to interact with the paging scroller by buffering
buffered: true,
// never purge any data, we prefetch all up front
purgePageCount: 0,
proxy: {
type: 'localstorage',
id : 'guestbookMessages',
extraParams: {
total: 50000
simpleSortMode: true

I see first 10 records without scroll, if I set pageSize:50 I see scroll, but it isn't infinite. Number of records is about 100.
What can I do?

27 Aug 2012, 2:17 PM
I would say you hit a limit of localStorage .. why would you want to do this anyway?