Quantcast
Channel: Project Has Moved
Viewing full articles (4858 articles)
Browse article index
↧

Commented Issue: Tabcontainer ActiveTabChanged / Ajax Control Toolkit [27103]

$
0
0
With the latest AJAX Control toolkit and there seems to be an issue with Tabcontainers where the ActiveTabChanged event is firing everytime the page loads / inits.


The issue that I'm having with this is that I have a tabcontrol inside of an Accordion panel and when the page inits/loads the page throughs a javascript error
The exact error

htmlfile: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.that is being thrown in the _setFocus: function(obj) event from javascript.


Besides the error being thrown the rest of the page does not init properly.


I see over on the codeplex site a few posts about this event as well.

Is there any corrections that can be made to code that prevents this event from firing on each load or a way to modify the code so it realizes the tab panel is hidden at the time?

I will add that this page was originally developed and tested using a much older version of the ajax control (3.5.40412.0) which does not have this issue

Comments: In my experience the issue only manifests itself when the ActiveTabIndex is 0, this has also been documented here (http://stackoverflow.com/questions/11395589/ajax-tab-controls-tabcontainer-activetabchanged-event-is-fired-on-each-postback). I am not certain how this is a low impact bug, the impact is pretty substantial if you utilize this event, which I am certain many do.
↧

Viewing full articles (4858 articles)
Browse article index

Latest Images

Trending Articles



Latest Images