[Solved] How to get totalProperty value from JsonReader?
Hello, I want to know is is possible to get the value from totalProperty from the following code:
Code:
UsersDataStore = new Ext.data.Store({
id: 'UsersDataStore',
proxy: new Ext.data.HttpProxy({
url: requestUrl,
method: 'POST'
}),
baseParams: {
task: 'LISTING',
param: 'ALL'
},
reader: new Ext.data.JsonReader({
root: 'results',
totalProperty: 'total',
id: 'id'
},
.
.
.
etc...
I tried the following :
Code:
alert(UsersDataStore.reader.totalProperty)
but i get "undefined" as result...