The check for such restriction should be performed on data-level. You can subscribe to the SelectionChanging
event of RadTreeListView. SelectionChangingEventArgs
exposes a property, from which you can benefit: AddedItems
. You can check if the child collection contains the currently selected item with logic similar to the one proposed below:
var selected = e.AddedItems
var clubs = (
.Where(c => c.NestedClubs.Contains(selected));
(clubs.Count() > 0)
Can you please give the approach a try and let me know should you need further assistance?
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items