KaxTabControlTabTemplate Property |
Gets or sets the template for displaying all tabs in the
KaxTabControl control.
Namespace: Kettic.AspNet.ControlsAssembly: 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; }
<PersistenceModeAttribute(PersistenceMode.InnerProperty)>
Public Overridable Property TabTemplate As ITemplate
Get
Set
public:
[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
virtual property ITemplate^ TabTemplate {
ITemplate^ get ();
void set (ITemplate^ value);
}
[<PersistenceModeAttribute(PersistenceMode.InnerProperty)>]
abstract TabTemplate : ITemplate with get, set
[<PersistenceModeAttribute(PersistenceMode.InnerProperty)>]
override TabTemplate : ITemplate with get, set
Property Value
Type:
ITemplateAn 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)
{
KaxTabControl1.DataBind();
}
}
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
KaxTabControl1.DataBind()
End If
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
<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