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
1615
Checkboxes in webdatatree
posted

I load a webdatatree from a dataset using relations. I have 3 levels of nodes in the tree but only want to show checkboxes for the 1st level of nodes. Is this possible? If so, how do I do this programmatically using vb.net.  Thanks.

Parents
No Data
Reply
  • 49378
    posted

    Hi jcom39201,

    Enabling WebDataTree's CheckBoxMode currently applies to all nodes and levels. I would suggest that you employ templates for your nodes to add checkboxes only at your required levels.

    For instance, here is the markup for a WebDataTree with a templated root node:

            <ig:WebDataTree ID="WebDataTree1" runat="server" CheckBoxMode="Off"
                Height="300px" Width="200px">
                <Nodes>
                    <ig:DataTreeNode Text="Root Node" >
                        <Template >
                            <asp:CheckBox Text="text" runat="server" />             
                        </Template>
                        <Nodes>
                            <ig:DataTreeNode Text="Child Node">
                                <Nodes>
                                    <ig:DataTreeNode Text="Child Node">
                                        <Nodes>
                                            <ig:DataTreeNode Text="Child Node">
                                            </ig:DataTreeNode>
                                            <ig:DataTreeNode Text="Child Node">
                                            </ig:DataTreeNode>
                                        </Nodes>
                                    </ig:DataTreeNode>
                                </Nodes>
                            </ig:DataTreeNode>
                        </Nodes>
                    </ig:DataTreeNode>
                </Nodes>
            </ig:WebDataTree>

     

    A guide for node templating in the WebDataTree is available at:

    http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebDataTree_Node_Templating.html

    Please tell me if this helps.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://ko.infragistics.com/support

Children