View Full Version : Access meta in JsonReader

5 Jun 2008, 2:17 PM
I would like to add one more parameter in JsonReader, so it looks like following

grid.store.reader = new Ext.data.JsonReader({
totalProperty : 'totalCount',
pageSize : 'pageSize',
root : 'products',
id : 'id'}, recordConfig

My Json Response will looks like the following

{"totalCount": 10,
"pageSize": 20,
{...}, {...},...]

How do I get the value of the pageSize "20" before the store is loaded?

5 Jun 2008, 2:31 PM
If you set it like that, it should (and I haven't tested yet...) be available as


The config values are set as first-level variables, so they are accessible like that, from my knowledge anyway.