Hello,
While am working on upgrade from Extjs 4 to Extjs 5, am getting this error in Store.
While am working on upgrade from Extjs 4 to Extjs 5, am getting this error in Store.
Ext.data.reader.Reader: Using the deprecated
"root" configuration. Use "rootProperty" instead.
In Extjs 4 we are using the root property in Proxy reader. But in Extjs we ahve to change the Proxy reader from root to rootProperty.
Extjs V4:
proxy:
{
type: 'ajax',
url: 'data/GetClients',
reader: {
type: 'json',
root: 'rows',
total: 'totalCount'
}
}
Extjs V5:
proxy: {
type: 'ajax',
url: 'data/GetClients',
reader: {
type: 'json',
rootProperty: 'rows',
totalProperty: 'totalCount'
}
}
No comments:
Post a Comment