Categories | Question details Back To List | ||
setRowHidden Hi, Where should put: mygrid.setRowHidden ??? My code(simplified): <BODY bgcolor='powderblue' onload="doOnLoad()" style="background-image:url(http://localhost:80/VerumWEB20X/Resources/Images/Wallpaper.jpg)"><FONT FACE="Verdana"> 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 Answer posted by Support on May 20, 2008 05:24 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); }); |