I want to first retrieve the node that is checked and then programatically check its child nodes.
Any help is appreciable!
Thanks,
Niranjan
2 Answers, 1 is accepted
0
Accepted
Neli
Telerik team
answered on 19 Dec 2017, 01:54 PM
Hi Niranjan,
You can subscribe to the check event of the TreeView. In the event handler you can retrieve the checked node in the following way:
var checkedNode = e.node
Then you can retrieve the data of the node , using the dataItem method. In case the node has child nodes, you can check them programmatically. An approach for checking nodes is described in the linked how-to article. The same approach is used in the following Dojo example.