PDA

View Full Version : PagingToolbar behaviour



Terrible
3 Dec 2009, 7:56 AM
Hi,
I have a problem with pagingToolbar.

store.ParamNames = { start = 'p_start', limit = 'p_limit'};

After setted this new params for my store, the paging toolbar gets me only one page vs many pages (452 rows/20 rows).

Any help?

Thanks a lot.

Luca

CrazyEnigma
3 Dec 2009, 8:43 AM
Are you using '=' instead of ':'?



store.ParamNames = { start: 'p_start', limit: 'p_limit'};

Terrible
3 Dec 2009, 8:55 AM
I'm sorry, my code is with ':' not '='. I wrote in a hurry.
The solution is using totalProperty as it's used in JasonReader.

new Ext.data.XmlReader({
//totalRecords:'TOTAL', ---> Previuos keywords until 3.0
totalProperty:'TOTAL', ---> New keywords after upgrade on 3.0.3
record: 'ROW',
id: 'ID'
}

Now my pagination is ok.

Thanks a lot.

Hy, Luca.