setRowHidden

Hi,

Where should put: mygrid.setRowHidden ???

My code(simplified):

        function doOnLoad(){
             mygrid = new dhtmlXGridObject('gridbox');
             mygrid.setImagePath("http://localhost:80/VerumWEB20X/imgs/");
             mygrid.enableAutoHeight(true);
             mygrid.enableColumnAutoSize(true);
             mygrid.setHeader("Categoria,2000,2001,2002");
             mygrid.attachHeader("#rspan,Receita l�quida,#cspan,#cspan");
             mygrid.setColAlign("left,right,right,right");
             mygrid.setInitWidths("96,105,105,105");
             mygrid.setColSorting("na,na,na,na");
             mygrid.init();
             mygrid.loadXML("http://localhost:80/VerumWEB20X/Temp/TestXML.xml");
             mygrid.setRowHidden(mygrid.getRowId(0),true);
             mygrid.setRowHidden(mygrid.getRowId(1),true);
    }

mygrid.setRowHidden - Don’t work !

Best regards.

CHW

The XML loading is async, you need to call such commands only after data loadin ( onXLE event or second parameter of loadXML )

mygrid.loadXML(“http://localhost:80/VerumWEB20X/Temp/TestXML.xml”,function(){
    mygrid.setRowHidden(mygrid.getRowId(0),true);

    mygrid.setRowHidden(mygrid.getRowId(1),true);

});


setRowHidden not working with IE10. Please suggest.

Unfortunately setRowHidden works well for us in IE10.
Please, try to update your dhtmlxgrid.

If issue still occurs for you - please, provide with a demo link or a complete demo, where the issue can be reproduced.