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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Activate tabitem by Javascript

Thread ID:

Created:

Updated:

Platform:

Replies:

129066 Feb 24,2017 08:58 AM UTC Feb 27,2017 06:22 AM UTC ASP.NET Web Forms 1
loading
Tags: Tab
Danferd Lan
Asked On February 24, 2017 08:58 AM UTC

How can i activate a specific tabitem from clientside? 

Karthikeyan Viswanathan [Syncfusion]
Replied On 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:   
   
<code>   
   
<ej:Tab ID="DefaulttabContent" runat="server" Width="600px"ShowCloseButton="true">   
        
</ej:Tab>   
   
</code>   
<code>   
   
<script type="text/javascript">   
        function tabselect(args) {   
            var inst = $('#<%=DefaulttabContent.ClientID%>').ejTab("instance");   
            inst.showItem(2);   
            // you can also use selectedItemIndex   
            //inst.option("selectedItemIndex",2)   
        }   
    </script>   
</code>   
  
   
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    
   
     
Regards,    
Karthikeyan V.    


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;