In my application, I want to hide several columns.
In the beginning, I use this code to solve it:
$("#jqxgrid").jqxGrid('hidecolumn', 'customer');$("#jqxgrid").jqxGrid('hidecolumn', 'supplier');...
It works fine but slow, and then I found a solution by
Peter Stoev:
Each of these hide/show calls will refresh the Grid so in your code you will have 16 unnecessary refreshes. To avoid that, before making such operations use the Grid’s beginupdate and endupdate methods. Call beginupdate before calling multiple methods and endupdate after that.
$('#jqxgrid').jqxGrid('beginupdate');$("#jqxgrid").jqxGrid('hidecolumn', 'customer');$("#jqxgrid").jqxGrid('hidecolumn', 'supplier');...$('#jqxgrid').jqxGrid('endupdate');
It works fine and as fast as expected…
When I use aggregates with this columns, something bad happens:
Columns hide but aggregates still there…
Can anyone help me?