Is there a way to perform an expand all / collapse all on the client side in a WebHier. grid?
windows 7 / v 10.3
Hello margh,
For expanding all records can be done within the server side object of the WebHierarchicalDataGrid. More information can be found here: http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=Infragistics4.Web.v11.1~Infragistics.Web.UI.GridControls.WebHierarchicalDataGrid~ExpandAll.html.
Let me know if you have any questions with this matter. Thank you.
I already know about the server side, hence I started my question with client side.
Does that mean it cannot be done client side?
Thank you
Hello marcgh,
For expanding all records there is no built in method for expanding all records. To expand records on the client side you would have to call the set_expanded() method for each of the grid record objects. When calling ExpandAll() method on the server side is recommended because for expansion on the records would be done by a single method call.
ok thank you, the reason why I wanted it on the client side is because I wanted to be able to expand certain rows depending on a criteria, like if the row is enabled or not. I figured it would be faster on the client side.
Thank you for the help,
Thanks for the update on the thread.
To expand a record you can call set_expanded() method when returning a reference of the row object. In the attached sample demonstrates on expanding the first primary record by an html button click.
Thank you, that's what i wanted to know. The client side method to set the row as expanded.
your sample works fine with 2 levels grid,
how should be the implementation for a grid with 4 levels, expand all in client side ?
thanks