Edit this page

OnClientTabEnabled

The OnClientTabEnabled client-side event occurs when a tab is enabled.

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 has been enabled.

You can use this event to respond when a tab is enabled:

<script type="text/javascript">
    function enableTab() {
        var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
        var secondTab = tabStrip.findTabByText("Root Tab 2");
        secondTab.enable();
    }
    function tabEnabled(sender, args) {
        alert("You have just enabled the " + args.get_tab().get_text() + " tab");
    }
</script>
<telerik:radtabstrip id="RadTabStrip1" runat="server" onclienttabenabled="tabEnabled"> 
    <Tabs>    
    ...
    </Tabs>
</telerik:radtabstrip>