This is a migrated thread and some comments may be shown as answers.

Multiple RadTabs Appear to be Selected

1 Answer 40 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 26 May 2010, 03:54 AM
I have a tabstrip at the top of the page. The navigate URL of each tab points to a javascript funtion. This function alters the contents of an IFRAME elsewere on the page. Also, it unselects the previously selected tab, changes it's text to be non-bold, then selects the clicked-on tab and makes the new tab bold.

The problem is that occassionally, when switching from one tab to another, the previously selected tab appears to still be selected. It's font is not bold but it is styled in a way that makes it still seem selected. Is this a known issue? Is there a workaround?


1 Answer, 1 is accepted

Sort by
0
Peter
Top achievements
Rank 1
answered on 26 May 2010, 04:18 AM
Okay, after a few more plays with it I found the problem. For some reason this only seems to happen when going from the first tab to the last tab or the other way around. For these tabs, even after calling `tab.unselect();`, I found that `tab._linkElement.className == "rtsLink rtsSelected". So I set this manually to just "rtsLink" when unselecting and now everything looks great.
Tags
TabStrip
Asked by
Peter
Top achievements
Rank 1
Answers by
Peter
Top achievements
Rank 1
Share this question
or