It would be nice to have more control over the item templates. ie, be allowed to more easily do stuff like:
Hello Levi,
The solution you found is correct. If you need additional width to the items it needs to be set up with CSS.
Regards,
Ianko
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.
Ianko,
I figured out a workaround to the inline/block issue. The crux is that the template is surrounded by <span class="k-in"></span> which has no width. Adding a width in the css solves this.
Hi Levi,
The select and draganddrop can be disabled by using the corresponding events, which is the better option to accomplish that as you can dynamically interfere with the node:
https://docs.telerik.com/kendo-ui/api/javascript/ui/treeview/events/select
https://docs.telerik.com/kendo-ui/api/javascript/ui/treeview/events/dragstart
As for the block vs inline rendering, can you provide some more details on the demand and the use case? Currently, the templates are rendered in a block element and I am not sure what would be the benefit to control whether the template element is inline or block.
Regards,
Ianko
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/.