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
720
How to bind parent Node and child Node using view model in XAM data Tree.
posted

Hi,

We are using XAM Data tree for Parent Child node. we have add check Box also. But when I add Item source, Field Name not showing in Parent Node. We are binding source in View Model.

In Item source I have Bind Observable collection "Menu" and fetch list of items from data base. But Nothing showing in parent Node and its child Node.

 <ig:XamDataTree x:Name="MyTree" ItemsSource="{Binding Menu}" DisplayMemberPath="Menu Name">
                    
                    <!-- Enable Check Boxes-->
                    <ig:XamDataTree.CheckBoxSettings>
                        <ig:CheckBoxSettings CheckBoxVisibility="Visible"/>
                    </ig:XamDataTree.CheckBoxSettings>
                    <ig:XamDataTree.GlobalNodeLayouts>
                        <ig:NodeLayout Key="Menu_ID" TargetTypeName="Menu_ID"
                     DisplayMemberPath="Menu_ID"/>
                        <ig:NodeLayout Key="Menu_Name" TargetTypeName="Menu Name"
                     DisplayMemberPath="Menu_Name">
                            <!-- Disable Check Boxes at the Product Level -->
                            <ig:NodeLayout.CheckBoxSettings>
                                <ig:CheckBoxSettingsOverride CheckBoxVisibility="Collapsed"/>
                            </ig:NodeLayout.CheckBoxSettings>
                        </ig:NodeLayout>
                    </ig:XamDataTree.GlobalNodeLayouts>
                </ig:XamDataTree>

Thanks

Parents Reply Children
No Data