PDA

View Full Version : Grid - ability to save user changes to backend?



vk214
19 Mar 2008, 8:32 AM
Hi, I'm looking into using the ext library for my application... One thing I'll need to do is save the user's configuration changes on any report grids and then have the ability to load the report grid with those same configuration options - but with dynamic data.

My question - is it possible to save the changes that the user makes to the grid? ie, if the user changes the column ordering, sorting, or group by columns - can those preferences be saved easily? Has anyone done this?

Thanks in advance.

mankz
19 Mar 2008, 10:05 AM
If cookies are ok in your app then you're all set.

Ext.state.Manager.setProvider(new Ext.state.CookieProvider());

This line saves the state of your grid (don't think it applies to grouping though). Check this post as well:

http://extjs.com/forum/showthread.php?t=26651&highlight=groupingview