Hi,
I recently upgraded our apps to latest kendo UI version and one of things we had implemented is broken:
Collapse/expand gantt list to a certain level (for example I want only first or first two levels to be expanded).
Before we used data-level property that was part of gantt list, but it seems that with R3 2020 since gantt custom list was replaced with a treelist this is gone.
Was this property removed by accident or it is intentional? If it was intentional, could you advice on new approach.
I would like avoid iterating through all elements and finding structure, since we have cases where projects have a lot of elements and also some other conditions included.
Thanks
Typically, with the update, everything should work the same.
Can you show what is the code and approach that you are using to expand to a certain level? If you are using public and documented methods for that it should be working as expected. If, however, you are using some custom logic for that it might need to be adjusted according to the TreeList update.
Currently I am using approach that is suggested by Kendo on https://docs.telerik.com/kendo-ui/knowledge-base/gantt-expand-collapse-alltasks
However it iterates through all elements and expands collapses everything.
As I wrote in original question, there was a property in each tr named data-level - which basically told us on which level is element in hierarchy.
I used this property to determine whether element should be collapsed or not. Since element is gone, there is no (obvious) way to know where in hierarchy element sits.
I uploadad two screenshots to my original question, as I don't see upload option in comment section.
THanks