jQWidgets Forums

jQuery UI Widgets Forums Grid SHOWCOLUMN very slow in rendering

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 7 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • SHOWCOLUMN very slow in rendering #100895

    CXXXV
    Participant

    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.

    SHOWCOLUMN very slow in rendering #100901

    Hristo
    Participant

    Hello CXXXV,

    You could try to wrap it between the beginupdate and endupdate methods.
    Please, take a look at this example.
    If this does not help you please, clarify it?
    It will be better provide us with more details or one simplified demo in another case.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.