Is there a way to perform an expand all / collapse all on the client side in a WebHier. grid?
windows 7 / v 10.3
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
Thank you, that's what i wanted to know. The client side method to set the row as expanded.
Hello marcgh,
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.
Let me know if you have any questions with this matter. Thank you.
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,
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.