DropDownTree: Display only the parent node on the tagList

1 Answer 153 Views
DropDownTree
Razie
Top achievements
Rank 1
Razie asked on 19 May 2021, 09:42 AM | edited on 19 May 2021, 09:45 AM

Hi,

Based on this checkboxes DropDownTree demo, is it possible to display only the checked parent node, say Kendo UI Project on the tagList but still have its children checked? Basically, when I check the Kendo UI Project node, I also want its children checked, but only display the "Kendo UI Project" on the tagList.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi
Telerik team
answered on 24 May 2021, 05:58 AM

Hi Razie,

You could select and collapse the Kendo UI Project in the referenced sample using the following js script:

        var ddt = $("#dropdowntree").data('kendoDropDownTree');
        var item = ddt.treeview.findByText("Kendo UI Project");
        item.find('.k-checkbox:first').click();
        ddt.treeview.collapse(item);

I hope this helps.

Regards,
Georgi
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/.

Tags
DropDownTree
Asked by
Razie
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or