Category / Section
How to embed controls with toolbar items using templates?
1 min read
Set the TemplatelID property of the toolbar item to id of the Template Control.
C#
< cc1:toolbar id="ToolBar1" runat="server" >
< Items>
< cc1:ToolBarItem ID="Item1" ButtonType="DropDown" TemplateID="products" >
< / cc1:ToolBarItem>
< / Items>
< Templates>
< cc1:TemplateControl ID="products">
< Template>
< SELECT>
< OPTION value="tools" selected>Essential Tools< /OPTION>
< OPTION value="grid" selected>Essential Grid< /OPTION>
< OPTION value="xlsio" selected>Essential XlsIO< /OPTION>
< /SELECT>
< / Template>
< / cc1:TemplateControl>
< / Templates>
< / cc1:toolbar>