Hello Infragistics Team,
We are using the React Hierarchical Grid component (v18.7.7 URL) in our project and need to programmatically expand or collapse rows.
We attempted to use hierarchicalGridRef.current.expandRow(value), but it only expands the first row(parent row) and not its child rows. We want to expand the child row also.
Could you provide an example with code demonstrating how to expand/collapse all rows, including child rows?
Thanks in advance!
Hello Michael,
Any update on this?
Its because you are now calling updateRow in a loop and gridCreated event is constantly firing as a result. While I still believe this might be machine specific to explain the 4-5 seconds (I don't see this delay), the grid does lock up on scrolling and live row updating has introduced more performance issues as I warned about happening earlier. I let our senior developer know and I will update with any useful tips if there are any. But for now my recommendation is to hold off doing live updates in this manner and/or simply update your data instead of updateRow on the grid. Keep in mind I am not aware of any way to suspend gridCreated when updateRow is also called but if I find anything useful I will let you know.
Please try this example (link) and let us know if you experience any UI freezing issues. We have tested it on different machines and observed a 4 to 5-second freeze after expanding or collapsing a row.
I am not noticing this. About a second or two at the max. Do you have another machine you can test this with?
Thanks for your confirmation.
We have created an example (link) demonstrating row expansion and collapse using a button. However, we are experiencing a UI freeze for 4 to 5 seconds after expanding or collapsing a row.
Please investigate this issue and provide a fix.
Thanks!