Click or drag to resize
KaxTabControlTabTemplate Property
Gets or sets the template for displaying all tabs in the KaxTabControl control.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public virtual ITemplate TabTemplate { get; set; }

Property Value

Type: ITemplate

An object implementing the ITemplateThe default value is a null reference (Nothing in Visual Basic), which indicates that this property is not set.

To specify unique display for specific tabs use the TabTemplate property of the KaxTab class.

Examples
The following example demonstrates how to customize the appearance of all tabs
protected void Page_Load(object sender, System.EventArgs e)
{
    if (!Page.IsPostBack)
    {
        //Required to evaluate the databinding expressions inside the template (<%# DataBinder.Eval)%>
        KaxTabControl1.DataBind();
    }
}
<kettic:KaxTabControl runat="server" ID="KaxTabControl1">
  <TabTemplate>
    <%# DataBinder.Eval(Container"Text") %>
    <img style="margin-left: 10px" src="Images/delete.gif" alt="delete"/>
  </TabTemplate>
<Tabs>
  <kettic:KaxTab Text="Products">
  </kettic:KaxTab>
  <kettic:KaxTab Text="Services">
  </kettic:KaxTab>
  <kettic:KaxTab Text="Corporate">
  </kettic:KaxTab>
</Tabs>
</kettic:KaxTabControl>
See Also