New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

OnClientTabSelected

The OnClientTabSelected client-side event occurs when the user selects a tab, after the tab has been selected.

The event handler receives two parameters:

  1. The instance of the tab strip firing the event.

  2. An eventArgs parameter containing the following method:

  • get_tab returns a reference to the RadTab that was clicked.

  • get_domEvent returns a reference to the DOM event object for the action that caused the selection.

You can use this event to respond when the user clicks on a tab:

<script>
function OnClientTabSelected(sender, eventArgs)
{
    var tab = eventArgs.get_tab();
    alert(tab.get_text());
}
</script>
<telerik:RadTabStrip RenderMode="Lightweight" ID="RadTabStrip1" runat="server" OnClientTabSelected="OnClientTabSelected" ... /> 
In this article