5 Answers, 1 is accepted
The RadTreeView generates its containers - the RadTreeViewitems when they are:
1) Root Level Items
2) Non-Root Item but their parent is Expanded
I guess you use TriState mode of the RadTreeView with setting the IsInTriStateMode = True. If so, when you check a root level Item which has never been expanded, only it will be in the CheckedItems Collection. In other words its children cannot be in the CheckedItems since they are not generated yet.
Could you please elaborate more on your scenario? It's not a good idea to use the CheckedItems collection because it has some known issues.
Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
TriStateMode should be used only in static scenarios (RadTreeViewItems are defined in XAML (not via binding)) and means that when a parent not is checked all of its children are checked too. If some of the children are checked and some a unchecked, the parent is in Indeterminate state. If all children are unchecked the parent is unchecked too.
In databinding scenarios, due to some known limitations in RadTreeView, this property won't work as expected. So we highly suggest you to use the approach described in this help article.
Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.