Intersoft WebDesktop Documentation
How-to: Create Custom Content
Send Feedback
Intersoft WebDesktop > WebToolBar > Tutorials > How-to: Create Custom Content

Glossary Item Box

WebToolBar provides a template to use custom content.

This topic will show you how to create custom content.

To create custom content

  1. Right click WebToolBar control and choose Properties.
  2. Go to Commands and click the collection button.
  3. Add one ToolCommand and set Type to Custom.
  4. Right click on WebToolBar and select Edit Template >> ToolCommand Items.
  5. Drag a standard ASP.NET Dropdownlist and a TextBox control.
  6. Configure the following value in CommandTemplate:
    <CommandTemplate>
       <asp:DropDownList ID="DropDownList1" runat="server" CssClass="text">
          <asp:ListItem>(Select a Product)</asp:ListItem>
          <asp:ListItem>WebToolBar</asp:ListItem>
          <asp:ListItem>WebMenuBar</asp:ListItem>
          <asp:ListItem>WebDesktopManager</asp:ListItem>
          <asp:ListItem>Others</asp:ListItem>
       </asp:DropDownList>
       <asp:TextBox ID="TextBox1" runat="server" CssClass="text">(Search)</asp:TextBox>
    </CommandTemplate>
    
  7. Run the project.
© 2012 Intersoft Solutions Corp. All Rights Reserved.