Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1675
xamdatatree and CheckBoxMemberPath
posted

I am using XamDataTree and have three level of heirarchy on the tree view

Parent

- Child

- - Symbol

My Xaml looks something like below

<ig:XamDataTree Grid.Row="3" x:Name="FilterTree" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch">

<ig:XamDataTree.CheckBoxSettings>
<ig:CheckBoxSettings IsCheckBoxThreeState="True"
CheckBoxVisibility="Visible"
CheckBoxMode="Auto"/>
</ig:XamDataTree.CheckBoxSettings>
<ig:XamDataTree.GlobalNodeLayouts>
<ig:NodeLayout Key="Grouped"
TargetTypeName="ParentNode"
DisplayMemberPath="Title">
</ig:NodeLayout>
<ig:NodeLayout Key="L2"
TargetTypeName="ChildNode"
DisplayMemberPath="Title">
</ig:NodeLayout>
<ig:NodeLayout Key="SymbolNodeKey"
TargetTypeName="SymbolNode" CheckBoxMemberPath="IsChecked"
DisplayMemberPath="Title">
</ig:NodeLayout>
</ig:XamDataTree.GlobalNodeLayouts>
</ig:XamDataTree>

As you can see i am binding IsChecked member path to the leaf node's CheckBoxMemeberPath, the binding works well and I can see checkbox gets enable/disable from the code behind, the problem is that the parent node of the leaf does not automatically gets checked/unchecked when the leaf gets checked/unchecked from the code behind (the xamdatatree checkbox setting is in auto mode). 

Can you suggest if it is a bug or if i am missing something? (please do not tell me that you'd expect users to maintain and enable/disable all parent nodes, if this is the case how can i set a parent node to be in a semi checked state i.e. when not all but only a few child nodes are checked).

Thanks

Parents
No Data
Reply Children