Articles in this section
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>

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied