I understand that I can’t traverse my treegrid (using forEachChild) because my data is dynamic.
But as I loop thru items that have been loaded, can’t I expand the subitems that will trigger the load?
Once a row it opened, I need to automatically apply some changes to it.
The problem comes in that it needs to be recursive such that if you open a row that then has subitems, those also need expanded and the process continues.
Can someone explain the best way to do this? Is anyone else out there loading dynamic data and then needing to traverse it?
I have a short deadline and need to get this working.
Why do you need to loop through all rows in treegrid? Do you need to change cell value or just expand then all?
If you want to format cells somehow it’s better to create custom eXcell type so cell will be formated automatically when it renders.
Hi Sorry - but I need to revisit this.
I need the ability to have an expand/collapse entire hierarchy so users can view their organizational hierarchy and approve it.
I’ve tried the foreachchild method but it only runs thru once since this is the only data loaded. It does correctly expand any child rows. But how do I get it to recursively continue?
In other areas of my code I use the expand_all with the expand_all_callback code (not sure where I got that from). It’s working for looping thru and changing values, but I can’t follow it and can’t seem to get it to loop thru and just continuously open until all child nodes with children are opened or closed.