We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Activate tabitem by Javascript

How can i activate a specific tabitem from clientside? 

1 Reply

KV Karthikeyan Viswanathan Syncfusion Team February 27, 2017 06:22 AM UTC

Hi Danferd Lan   
Thanks for contacting Syncfusion Support.   
Yes, you can select the tab items using showItem public method in client side.   
Please find the code snippet:   
<ej:Tab ID="DefaulttabContent" runat="server" Width="600px"ShowCloseButton="true">   
<script type="text/javascript">   
        function tabselect(args) {   
            var inst = $('#<%=DefaulttabContent.ClientID%>').ejTab("instance");   
            // you can also use selectedItemIndex   
Refer to the API reference link for selectedItemIndex: https://help.syncfusion.com/api/js/ejtab#members:selecteditemindex    
Refer to the showItem  client side public method link: https://help.syncfusion.com/api/js/ejtab#methods:showitem    
Karthikeyan V.    

Live Chat Icon For mobile
Up arrow icon