How might I make it so only the dropdowntree's leaves are selectable; and clicking parent nodes will either do nothing or expand the nodes?
3 Answers, 1 is accepted
0
Accepted
Plamen
Telerik team
answered on 07 Jun 2018, 12:41 PM
Hi,
Such behavior van be achieved if we hook to select event of the treeview and allow selection only for some for the items. Here is a sample dojo with jQuery version. In case of MVC DropDownTree the widget should be found and the event bound by using a code similar to the one below in a script tag in the view:
var dropdowntree = $("#dropdowntree").data("kendoDropDownTree");
Thanks, this solves my issue, however it would be nice if there were an option in the Razor tree declaration to trigger this function in a future release
0
Plamen
Telerik team
answered on 08 Jun 2018, 08:42 AM
Hello,
Thank you for sharing your feedback.
We have not planned such feature for the MVC component so far yet you can submit a feature request about it in our feedback portal here.