I have the following code:
if (ensday != 'NONE'){
switch (ensday)
{
case 'MON':
$("#jqxgrid").jqxGrid('showcolumn', 'E1V');
$("#jqxgrid").jqxGrid('showcolumn', 'E1C');
break;
case 'TUE':
$("#jqxgrid").jqxGrid('showcolumn', 'E2V');
$("#jqxgrid").jqxGrid('showcolumn', 'E2C');
break;
case 'WED':
$("#jqxgrid").jqxGrid('showcolumn', 'E3V');
$("#jqxgrid").jqxGrid('showcolumn', 'E3C');
break;
case 'THU':
$("#jqxgrid").jqxGrid('showcolumn', 'E4V');
$("#jqxgrid").jqxGrid('showcolumn', 'E4C');
break;
case 'FRI':
$("#jqxgrid").jqxGrid('showcolumn', 'E5V');
$("#jqxgrid").jqxGrid('showcolumn', 'E5C');
break;
$("#jqxgrid").jqxGrid("render");
}
}else{
$("#jqxgrid").jqxGrid('hidecolumn', 'E1V');
$("#jqxgrid").jqxGrid('hidecolumn', 'E1C');
$("#jqxgrid").jqxGrid('hidecolumn', 'E2V');
$("#jqxgrid").jqxGrid('hidecolumn', 'E2C');
$("#jqxgrid").jqxGrid('hidecolumn', 'E3V');
$("#jqxgrid").jqxGrid('hidecolumn', 'E3C');
$("#jqxgrid").jqxGrid('hidecolumn', 'E4V');
$("#jqxgrid").jqxGrid('hidecolumn', 'E4C');
$("#jqxgrid").jqxGrid('hidecolumn', 'E5V');
$("#jqxgrid").jqxGrid('hidecolumn', 'E5C');
$("#jqxgrid").jqxGrid("render");
}
When triggering this code the render on the grid is very, very slow. Especially on the hidecolumn. Any thoughts.