I'm using RadTreeView control for WPF Q2 2009, with values
IsOptionElementsEnabled
="True"
ItemsOptionListType="CheckList"
IsTriStateMode="True"
the treeview is collapsed. If i check first root item but not expand the node, CheckedItems only return one item. Otherwise if I expand the node, CheckedItems returns the root item node and subitems.
Is there any option to avoid that?
This is the example:
<telerik:RadTreeView |
IsLineEnabled="True" |
IsOptionElementsEnabled="True" |
ItemsOptionListType="CheckList" |
IsTriStateMode="True" |
IsRootLinesEnabled="True" |
controls:StyleManager.Theme="Vista" |
> |
<telerik:RadTreeViewItem Header="Item0"> |
<telerik:RadTreeViewItem Header="Item1.1"/> |
<telerik:RadTreeViewItem Header="Item1.2"/> |
</telerik:RadTreeViewItem> |
<telerik:RadTreeViewItem Header="Item1"> |
<telerik:RadTreeViewItem Header="Item1.1"/> |
<telerik:RadTreeViewItem Header="Item1.2"/> |
</telerik:RadTreeViewItem> |
<telerik:RadTreeViewItem Header="Item2"> |
<telerik:RadTreeViewItem Header="Item1.1"/> |
<telerik:RadTreeViewItem Header="Item1.2"/> |
</telerik:RadTreeViewItem> |
</telerik:RadTreeView> |
When I check node Item0 but not expand it, CheckedItems returns Item 0 only (this happens only the first time node is collapsed)
But expanding it, CheckedItems returns Item 0, Item1.1, Item1.2. (if i collapsed the node again, CheckedItems returns Item 0, Item1.1, Item1.2)
Also I set theme to Vista (controls:
StyleManager.Theme="Vista" ) but I get an orange backgound when mouse is over the nodes. Is this ok?
Thanks and best regards,
Alberto