New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
TabClick
The server-side TabClick event occurs when the user clicks on a tab, causing a postback.
The TabClick event handler receives two arguments:
-
The RadTabStrip that contains the clicked tab. This argument is of type object, but can be cast to the RadTabStrip type.
-
A RadTabStripEventArgs object. This object has a Tab property that you can use to access the tab that was clicked.
Use the TabClick event handler to respond when the user clicks a tab in the tab strip:
C#
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
{
Telerik.Web.UI.RadTab TabClicked = e.Tab;
Label1.Text = TabClicked.Value;
}