PDA

View Full Version : problem with save state of grid on server DB



psk
23 Jan 2011, 11:21 PM
hi,
I am using grid http://dev.sencha.com/deploy/dev/examples/grid-filtering/grid-filter-local.html. i want to save state of grid.

i m using Ext.ux.state.HttpProvider.js and i am adding following code in my grid. but grid is not rendering. and i got some js error. i have used another file to get state of grid and saved into database.


Ext.state.Manager.setProvider(new Ext.ux.state.HttpProvider
({
url: '/save.php',
user: '12',
session: 'state',
id: '1',
readBaseParams:
{
cmd:'readState'
},
saveBaseParams:
{
cmd: 'saveState'
},
autoRead: false
}));

Ext.state.Manager.getProvider().initState();

// some code

stateful: true,
stateId: 'aaa',

please help me.

25 Jan 2011, 11:10 AM
"some js error" doesn't help us. Where is the error?