collection should contain business items as its purpose is to populate the control with data items. Basically when you use the ItemsSource
property you need to keep in mind that the RadTreeView
will create a RadTreeViewItem
container for each item in the ItemsSource
collection. This is related to the fact that the control treats this collection as filled with business data.
So in your case, as you're creating an ItemsSource
which is a collection of RadTreeViewItems
, you'll get for each item in the control a RadTreeViewItem
wrapped in another RadTreeViewItem
. And both will have expanded and check states so this is probably the cause for your issues.
This is why I'd advice you to populate the RadTreeView
with business items as described here
. And in order to implement a custom checking logic, it's best to follow this tutorial
. As for the expanding logic, you can also control it through a business property if you bind the IsExpanded
property of each RadTreeViewItem
container to a business value as demonstrated here
Pleas try the listed suggestions and let us know if they help or if you're still experiencing issues.
the Telerik team