Title: menus from filter isnt destroyed when reloading the datagrid Post by: A-K on November 08, 2014, 09:02:21 AM Hey,
When making changes to the datagrid that requires it to reload like changing the columns, the menus that are created from the filter button isn't destroyed. what I mean is this, This is the how the datagrids dom looks when first time loaded: (http://i61.tinypic.com/qsukd0.png) After playing a bit with the datagrid with this code and then creating the filters again: Code: dg.datagrid({columns: newColumns}); This is how it will look now: (http://i57.tinypic.com/2lcemc.png) Is there a way to destroy the menus of this datagrid when reloading it? at some point I looked at the dom and there was around 30 menus. Thanks. Title: Re: menus from filter isnt destroyed when reloading the datagrid Post by: jarry on November 08, 2014, 07:10:12 PM Please call 'disableFilter' method before recreating the datagrid. Be sure to download the newest 'datagrid-filter.js' file from http://www.jeasyui.com/extension/datagrid_filter.php
Code: dg.datagrid('disableFilter'); Title: Re: menus from filter isnt destroyed when reloading the datagrid Post by: A-K on November 09, 2014, 05:16:48 PM Thanks!
|