jQuery UI Widgets › Forums › Grid › Create a grid with default state
Tagged: angular data grid, datagrid, Grid State, jquery data grid
This topic contains 7 replies, has 2 voices, and was last updated by Mallikarjun Baddur 10 years, 9 months ago.
-
Author
-
I have a grid state at session storage, by default on grid initialization I need to load my grid with the available state. When I tried to load state in ‘ready’ callback function two server requests are triggered. How can I avoid two server requests?
Please suggest me a way to create a grid with some state.
Thanks,
MallikarjunHi Mallikarjun,
You cannot avoid them if you have sorting and filtering saved in the state.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
Thanks for reply. Is there any way to stop adapter automatic server request call, so that I can stop that when I have any grid state.
Regards,
MallikarjunHi Mallikarjun,
The adapter does not make automatic server requests unless you load such saved state. No, you cannot stop these.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
Here are two server requests
1) On grid initialization automatic data adapter call (This call doesn’t contain any sort and filter params)
2) When a grid state is loaded a call with sort and filter paramsSo When I have any previous grid state, I need to stop automatic data adapter call and use only load state call.
Or please suggest any other mechanism to initialize grid with default sort and filter on few columns.
Thanks & Regards,
MallikarjunHi Mallikarjun,
I understand, but that is how the Grid works. It data binds to the data adapter, then you Load the state via the Grid’s API or by turning on autoloadstate and the Grid will make a request with filter, sort, etc params.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
I will try using ‘autoloadstate’ option. How could I remove saved grid state?
Regards,
MallikarjunHi,
Any update on this please. I just need to remove grid state when user is logged out. How could I achieve that, please assist me.
Thanks,
Mallikarjun -
AuthorPosts
You must be logged in to reply to this topic.