I would like to be have a particular TreeList node open upon page load when the id of the row/node that I want opened was passed in as a parameter and want only first child row opened. I have cloned Expand Selected Nodes Example" in the documentation and started this process at https://dojo.telerik.com/@rswetnam/igOwIcUk/8.
Any help in figuring out how to complete this so that I am able to pass in the parameter (in this case 2 for condiments) instead of clicking on the node I want to expand would be greatly appreciated.
6 Answers, 1 is accepted
Hi Roger,
When using the Kendo UI TreeList, the recommended approach is to use the "expand" method. Find a Dojo sample below that demonstrates how to expand a row, both with a given ID or without an ID:
https://dojo.telerik.com/IKAxoYUY
Is it possible for you to share whether the widget in use is the "TreeView" or "TreeList"? As the ticket is submitted for TreeList and the example that you have shared targets the TreeView.
Looking forward to your reply.
Kind regards,
Tsvetomir
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi Roger,
Thank you for sharing the updated example.
I have noticed that the element for the TreeList was missing and it was not rendering at all. Also, I have noticed that the expand method is working correctly. However, since the second parent of the item of interest is not expanded, it appears as not hidden.
Apart from the item that you would like to show, you will have to expand all the parent rows. Similarly to the approach here:
https://dojo.telerik.com/OdEleGaM
You can automate this process and dynamically find the parents and expand their respective elements.
Regards,
Tsvetomir
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi Roger,
Thank you for letting me know that you have raised a new forum thread for adjusting the sample with remote data. For your information, it is not mandatory to send a separate notification that you have posted a new message, it will appear automatically in our system and I or any of my colleagues will handle it accordingly.
Nevertheless, I am sharing the updated sample here if anyone lands on this thread:
https://dojo.telerik.com/OrURAFaN
Best regards,
Tsvetomir
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.