Categories | Question details Back To List | ||||||||
sticky filters - can filter maintain their values when we reload the grid ? Hi team, When we select a filter value then we refresh the grid, the filters are reset and all rows are displayed. We want the filter state to persists after refreshing the grid so that we don't hav eto mak ethe selection again ? Is thsi possible? Thanks, Daniel Answer posted by Support on Sep 05, 2008 02:03 The grid will not maintain value on its own, technically it possible to catch filter state and reuse it after data reloading //as part of grid init Answer posted on Sep 04, 2008 18:57 Thanks, but there is no such event in our professional release v1.6 b80512? The last release w ehad from you guy swas on 22 May 2008 and we didn't receive any other release afterwards. I have looked on the event documentation of the release we have, there is no "onFilterStart" and only "onFilterEnd" mentioned as an event but without documeting how it works or what sort of parameters will be received via the callback handler. Answer posted on Sep 04, 2008 19:27 We tried to use "onFilterEnd" event instead which is supported by the current version as follows: mygrid.attachEvent("onFilterEnd",function(a,b){ but the browser crashed when we called: grid.filterBy.apply(grid,state); Please advise.. Answer posted by Support on Sep 05, 2008 02:05 Please check attached sample. Attachments (1)
Answer posted on Sep 08, 2008 17:24 Thanks, but this version of dhtmlxgrid.js that you included is missing an API "attachFooter". Daniel, Answer posted by Support on Sep 09, 2008 02:32 >>Thanks, but this version of dhtmlxgrid.js that you included is missing an API "attachFooter". That is a standard edition of dhtmlxgrid , which doesn't support such feature. You can use your existing version of dhtmlxgrid. The only file which probably need to be updated - dhtmlxgrid_filter.js , which contains some additional features, not supported by original release. ( they will be officially released as part of next version ) |