Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Andrew Waters on Jan 20, 2010 06:38
open dhtmlx forum
Creating Hidden Rows with XML

Hello,

I'm trying to work around the problem that updateFromXML(url) does not update global userData by using hidden rows. How do I specify a row as hidden in XML. I've hidden a row via the function "setRowHidden" and the row is hidden in teh display but when I serialise the XML there is no attribute listed that I can use on the original input XML for the grid.

I tried:

<row id="xxx" hidden="true"> .... </row>

but that does not work. What is the correct way please?

Thanks.
Answer posted by Alex (support) on Jan 20, 2010 06:58

hello

custom attributes are available by getRowAttribute method. So, you can try to use the following:

grid.attachEvent("onXLE",function(){

    grid.forEachRow(function(id){

        if(grid.getRowAttribute(id,"hidden")=="true") grid.setRowHidden(id,true);

    })

})