This question is locked. New answers and comments are not allowed.
Hello,
I have a grid that uses ajax binding and the GridOperationMode.Client and i am trying to get the grid to preserve the filtering, sorting, grouping, and ColumnContextMenu changes when a user manually refreshes the pages (i.e. F5). Since none of the values get added to the route data because the actions are client side the refresh always erases any user changes to the grid. I do not want to switch to the server side actions since it takes a significant amount of time (4+ seconds) to gather the grid's data (since the data spans across several database tables) and with normal operation mode every single action would send a new request.
I have played around with using the url hash to store the values and have javascript do the work for me when the grid loads but i have had mixed results. The grid.sortBy property appears to drive the sorting as expected, when i pass it the sorting string the grid appears to key off it when generating the grid. However the grid.filterBy and grid.groupBy attributes appear to not work that way.
Is there any way to set the filtering, sorting, grouping, and ColumnContextMenu values before the grid loads and have the grid perform a single data binding using javascript?
Thanks,
I have a grid that uses ajax binding and the GridOperationMode.Client and i am trying to get the grid to preserve the filtering, sorting, grouping, and ColumnContextMenu changes when a user manually refreshes the pages (i.e. F5). Since none of the values get added to the route data because the actions are client side the refresh always erases any user changes to the grid. I do not want to switch to the server side actions since it takes a significant amount of time (4+ seconds) to gather the grid's data (since the data spans across several database tables) and with normal operation mode every single action would send a new request.
I have played around with using the url hash to store the values and have javascript do the work for me when the grid loads but i have had mixed results. The grid.sortBy property appears to drive the sorting as expected, when i pass it the sorting string the grid appears to key off it when generating the grid. However the grid.filterBy and grid.groupBy attributes appear to not work that way.
Is there any way to set the filtering, sorting, grouping, and ColumnContextMenu values before the grid loads and have the grid perform a single data binding using javascript?
Thanks,