Hi,
I am making sort of an accordian style web grid with out using a multi-band grid. When I click on a certain row the rows under it are hidden until the next designated row is reached. The hiding was the easy part using:
(in Javascript)
oRow.Element.style.display = "none";
I can't seem to figure out how to display the hidden row. Is that even possible after using the above code? Actually I would like to check the .display of the row as I loop through after the user clicks. If they are displayed(the default) then hide them, if they are hidden then show them.
Thanks,
Steve
Hello Steve,
It has been a while since you have made your post but I suppose the other community members can benefit from this answer as well.
You can use “setHidden(<boolean>)” grid row Client-Side method - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2010.3/CLR4.0/html/WebGrid_row_Object_CSOM.html - to show/hide the needed grid rows.
To get the row state you can use “getHidden()” row method that will return the state of the row as Boolean.
I hope that this information will be useful in your scenario.