Declined
Last Updated: 22 Jun 2021 04:34 by ADMIN
Levi
Created on: 13 Dec 2018 21:25
Category: TreeView
Type: Feature Request
0
Greater control for item templates.

It would be nice to have more control over the item templates. ie, be allowed to more easily do stuff like:

  • Make the item non-selectable, or only selectable by a child element.
  • Make the item drag-and-droppable only via a grip element.
  • Make the item template display as a block, not inline.
4 comments
ADMIN
Ianko
Posted on: 22 Jun 2021 04:34

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.

Levi
Posted on: 21 Jun 2021 21:07

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.

ADMIN
Ianko
Posted on: 21 Jun 2021 13:03

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/.

ADMIN
Veselin Tsvetanov
Posted on: 20 Dec 2018 09:54
Hello Levi,

Thank you for your suggestion for enhancements in the TreeView widget. We will keep tracking the support that the above receives among the community. Based on that will will decide if we will proceed with its implementation.

Regards,
Veselin Tsvetanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.