Returns an ITemplate object that is used to define an embedded custom item on Aspx page for data binding.
[Visual Basic]
Public Property CustomItem As
ITemplate
Property Value
System.Web.UI.ITemplate
An ITemplate that contains the custom item template for this navigation item. The default value is null (Nothing for Visual Basic).
Remarks
There are two ways to define a custom item:
- Drag a CustomItem control on page and specify any navigation item's CustomItemID to that CustomItem. Refer to regular custom item for details.
- Use embedded item by specifying CustomItem tag as the following HTML code
<eo:MenuItem>
<CustomItem>
<asp:TextBox runat="server" Text="test"><>
</CustomItem>
</eo:MenuItem>
You can enclose any ASP.NET server controls or HTML inside the CustomItem tag. An embedded custom item can be used to nest ASP.NET control in a navigation item and it has the following advantages:
- No need to specify CustomItemID;
- Can be defined inside a TemplateItem which defines common properties of repeatly created items during data binding. As for a regular custom item, it can not be repeately.
- Being created during a navigation control or NavigationItemGroup's data binding process.
Refer to embedded custom item for details.
See Also
NavigationItem Class | EO.Web Namespace