HI,
I’ve to show/hide many columns at the same time. So I use ‘hidecolumn’/’showcolumn’ but it takes a lot of time (around 10 sec for 30 col).
This is my code:
if($(this).get(0).checked == true){
$.each(columnsH,function(k,v){
if (jQuery.inArray(v.text, difference)!=-1) {
$('#jqxgrid').jqxGrid('hidecolumn', v.datafield);
}
});
}else{
$.each(columnsH,function(k,v){
if (jQuery.inArray(v.text, difference)!=-1) {
$('#jqxgrid').jqxGrid('showcolumn', v.datafield);
}
});
}
Is there a way to do it faster? For example exist a function to hide a collection of datafield in one time?
Best Regards