tree selection problem

0 Answers 35 Views
TreeView
Jieun
Top achievements
Rank 1
Jieun asked on 28 Oct 2024, 01:18 AM

Hello,

I'm currently  creating a treeview page using kendo JQuery.

I want to make it so that when a child node is selected, the parent node is selected.

I found this page, https://docs.telerik.com/kendo-ui/knowledge-base/check-nodes-programmatically, and tried to this properties.

 var treeview = $("#tree").data("kendoTreeView");

    var bar = treeview.findByText("Bar");

    treeview.dataItem(bar).set("checked", true);

 

But, 'menuAuth.js:299 Uncaught TypeError: Cannot read properties of undefined (reading 'findByText')' was printed on the console.

also, parent cannot be read.

'menuAuth.js:301 Uncaught TypeError: Cannot read properties of undefined (reading 'parent')' is printed on console too.

 

I really need to make parent node selection.

 

please let me know how can I use this things.

Thanks,

Jieun

 

Nikolay
Telerik team
commented on 30 Oct 2024, 12:39 PM

Hi Jieun,

The example shared works as expected and I don't see any errors in the console. Could you please share a Dojo demo where the problem is replicated so I can investigate?

Regards,

Nikolay

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Jieun
Top achievements
Rank 1
Share this question
or