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,
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.
Any idea how to get checkboxes in the tree working with this approach? The tree is displayed in the dropdown, but I can't select checkboxes.
Turns out the checkboxes don't work when the WebDropDown is disabled and subsequently enabled. I've started a separate thread for that issue.