Multiple RadTabs Appear to be Selected

2 posts, 0 answers
  1. Peter
    Peter avatar
    95 posts
    Member since:
    Mar 2009

    Posted 25 May 2010 Link to this post

    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?


  2. Peter
    Peter avatar
    95 posts
    Member since:
    Mar 2009

    Posted 25 May 2010 Link to this post

    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.
Back to Top