I have encountered a slightly bizarre bug while using the ajax control toolkit TabPanel. I have 4 tabs in row like so:
[Tab1][Tab2][Tab3][Tab4]
Now tab 2 should only appear in certain circumstances, and so has its visibility set to false. However while it is invisible, if I was to click on Tab 3, it would load the tab before switching to Tab 1. Similarly selecting tab4 will load tab4 but then immediately switch to tab3. On the server side the ActiveTabChanged event is being hit twice, once for the tab correctly selected, on once for the tab it is switching too.
If I move Tab2 to the end of the row of tabs, everything works fine. Having read up on the toolkit a bit, I presume this is an error to do with the active tab index, and the javascript is setting it to one lower than it should, but I’m not sure how to going about fixing it.
I’m not sure if this is the same issue but it sounds similar to one that i’ve had for few months. Have a look here for my problem and the solution:
I had to fix a Bug in Ajax-Toolkit from PreRender: