Items Template
To add a template for all menu items that don’t include other defined templates, complete the following:
1. Add menu items to C1Menu using the C1Menu Designer Form editor Remove the default text for the first menu item so your menu appears similar to the following:
2. Click OK to save and close the C1Menu Designer Form dialog box.
3. Switch to source view and add the following HTML markup right above the <Items> tag:
<ItemsTemplate>
<%#Eval("Text") == "" ? ("<font color=\"green\">empty text</font>") : ("<i><b>" + Eval("Text") + "</b></i>")%>
</ItemsTemplate>
4. Select the Design tab to switch to design view and notice the Databound items appear on the C1Menu control.
5. Run you project and notice the new text and font style for the menu items.
|