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
130
WebDataTree in WebDropDown
posted

Hi,

I am just wondering is it possible to show WebDataTree in WebDropDown? If not possible, please let me know other alternate method to accomplish the same. Also, send me sample code, if possible.

Thanks,

Parents
  • 5105
    Verified Answer
    Offline posted

    Hi there,

    It is absolutely possible to put a WebDataTree inside a WebDropDown and it is done using the ItemTemplates:

    <ig:WebDropDown ID="WebDropDown1" runat="server">
            <Items>
                <ig:DropDownItem TemplateId="TmpID"></ig:DropDownItem>
            </Items>
            <Templates>
                <ig:ItemTemplate TemplateID="TmpID">
                    <Template>
                        <ig:WebDataTree ID="WebDataTree1" runat="server">
                        </ig:WebDataTree>
                    </Template>
                </ig:ItemTemplate>
            </Templates>
        </ig:WebDropDown>

    Try this out yourself and let me know if you have any more questions.

Reply Children