New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnClientTabUnSelected
The OnClientTabUnSelected client-side event occurs when the user selects a new tab, after the previously selected tab has been unselected.
The event handler receives two parameters:
-
The instance of the tab strip firing the event.
-
An eventArgs parameter containing the following method:
-
get_tab returns a reference to the RadTab that was previously selected.
-
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 deselects a tab:
ASPNET
<script>
function OnClientTabUnSelected(sender, args)
{
var tab = args.get_tab();
alert("The previously selected tab was " + tab.get_text());
}
</script>
<telerik:RadTabStrip RenderMode="Lightweight" ID="RadTabStrip1" runat="server" OnClientTabUnSelected="OnClientTabUnSelected" ... />