Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Agile on Aug 16, 2009 22:31
open dhtmlx forum
Save settings and different path issue in cookie

Hi All,

I am using enableAutoSizeSaving, enableOrderSaving feature for grid I have grid for each item.But I have n number of items.When I change grid settings from any items page it remembers only for that page because the url changes for every item based on item_id.
And cookie path variable changes for each item.I want common grid settings for every item how can I set common cookie path variable.And grid is on every item detail page with different page url.

How can I resolve this problem?

Thanks,
Agile
Answer posted by dhxSupport on Aug 17, 2009 00:41
>>I want common grid settings for every item how can I set common cookie path variable.And grid is on every item detail page with different page url.
Unfortunately it's impossible to do with browser's cookies. You can use grid's events and save grid state at the server side or at the grid userdata.
Please find more information here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/events.html#grid_api_ev
http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Storing_additional_data.html#grid_art_userdata