Hello, Andrei,
You are absolutely correct that such edits would need to be made in every component using the TreeList, and I agree that this is not ideal. While the TreeList component does not provide a built-in mechanism to transfer configuration through a global context at the root level, a similar result can be achieved by creating a custom React Context for shared TreeList styles or properties. The provider can then be placed near the root of the application, and the context consumed inside a TreeList wrapper component.
I modified the previously sent example with this approach. While this isn’t ideal, I hope it still proves useful and helps avoid some of the hassle with having a lot of TreeList components. I also tried to find a global solution with CSS which would be easier, however this approach causes issues for the virtual scroll and did not yield good results.
Regards,
Filip
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hi, Andrei,
After further inspection a possible workaround we can suggest is to set the minimum height so the TreeList always has enough space to render, preventing both the visual disappearance and the zero values. This way even if the slider goes to zero, the TreeList will never collapse to an unusable size. I’ve attached the previously sent project, updated with this approach.
Please let me know in case the issue still persists on your end and I will gladly assist further.
Regards,
Filip
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hi, Andrei,
Thank you for the provided video. Following the steps I was able to reproduce the described issue. I tried different custom implementations in order to resolve it, however none of them gave a satisfying result. I will need more time in order to sync with the dev team for a possible solution, I will get back to you once I have more feedback on this matter.
Thank you in advance for your patience.
Regards,
Filip
Progress Telerik
Hi, Andrei,
Thank you for the sent project. I ran it locally and debugged it after I reduced the container height to zero, however the item was not undefined as seen in the screenshot. I have attached the result from the debugging here:
Can you please confirm if I’m following the correct steps (specifically, resizing the container to zero)? I reviewed our closed issues to check whether this might have been a bug in an older version that was later fixed, but I couldn’t find any responses. I suggest upgrading to the latest version (12.2.0), as many improvements have been made, and the issue may already be resolved in recent releases.
Regards,
Filip
Progress Telerik
Hi, Andrei,
It seems that I have attached the wrong project, please accept my apologies for the oversight. I have attached the react project that I tested in which the TreeList is placed inside a flexible container, I have attached it to this ticket. If possible can you please configure it so that it matches your scenario and the issue reproduces?
Please accept my apologies for the oversight earlier once again.
Regards,
Filip
Progress Telerik
Hi, Andrei,
Thank you for the provided screenshot. I went through our public issues and tickets in order to see if someone else had reported the same error, however it seems that this is the first report so far. I tested the TreeList component with both version 5.10.1 and the latest one (12.0.2) in order to reproduce it, however I was not able to.
I agree that there is an issue based on the screenshot, however we will need to reproduce it locally in order to determine if it's a bug on our end or due to the configuration. I have attached the test project to this ticket. If possible can you please modify it so that the issue reproduces? This will enable me to investigate further if this is a bug and if upgrading to a newer version would resolve it.
Regards,
Filip
Progress Telerik