For achieving this requirement, you can benefit from the SelectionChanging
event of RadTreeListView
. Through the AddedItems
property of the event arguments you should be able to determine whether a parent or a child node has been selected. If a child node has been selected you can set the boolean Cancel
property of the event arguments to True
, thus disable the selection. Please take a look at the code snippet below.
I hope this helps.
All the best,
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.