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

Unselecting a tab node

Thread ID:





98257 Feb 17,2011 05:24 AM UTC Feb 21,2011 10:03 AM UTC General Discussion 1
Tags: General Discussion
Asked On February 17, 2011 05:24 AM UTC

I am using the latest version of syncfusion and would like to know how to unselect the current selected tab.

When I click on the tabstrip and click on a tab node, it stays highlighted which prevents me from reloading a frame page once that tab is selected.
What I would like to do is tho have it operate like an ordinary link where I do nto need to know the tab that I have selected.
So if i select a tab node it changes the url in an iframe, but it does not stay highlighted so if I click it again, it will reload the same page without going to another tab to deselect current then reselecting the previous tab to reload the same page.

Does anyone know how to do this? I am using VB also. thanks

Varalakshmi R.S [Syncfusion]
Replied On February 21, 2011 10:03 AM UTC

Hi Bryon,

Thanks for your interest in Syncfusion products.

Whenever the tab strip is clicked, you are navigating to the same page and hence the page life cycle starts again as a fresh page. So, the tab stripe will highlight the default selected items only. We suggest you to pass the clicked tabstrip details in the query string and based on that, you can set the selected property as true for the clicked tab in the navigated page.

Please refer the following code snippet:

Dim strAction As String = Request.QueryString("Action")
Dim strtab As Integer = Convert.ToInt32(Request.QueryString("tab"))
Dim stritem As Integer = Convert.ToInt32(Request.QueryString("item"))if ((stritem != null) && ( strtab != null))
If (stritem IsNot Nothing) AndAlso (strtab IsNot Nothing) Then
If strtab = 0 Then
Me.TabStrip2.Items(stritem).Selected = True
Me.TabStrip1.Items(stritem).Selected = True
End If
End If

I have also prepared a simple sample and it can be downloaded from the below link,

Kindly try this and let me know if this helps.



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

This page will automatically be redirected to the 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