Hi,
I found an error in Tabs of ajax control toolkit, I have downloaded the last version of June 2012 Release, the erros occors in the other versions too.
The error consist in have a TabContainer inside a Tab of other TabContainer, inside an update panel.
When run the application an error of "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."
The error occors only in the IE 8, I dont have IE 7 for test. The error dont occors in IE 9 compatibility mode.
I have resolved this error, add a try/catch block in js script "Tabs.pre.js" where the focus of tab is set.
Attachment the application that occors the bug.
Ivan Patrick.
Comments: I uninstalled Version 4.1.60919 (Sept 2012) and installed Version 4.1.60623 (June 2012) which stated that this issue was fixed in that release, but the same problem is there. Fix is listed on http://ajaxcontroltoolkit.codeplex.com/workitem/27053 but this was not added to the source code. I checked the source and the fix is definately not in there. Just need a try catch block added to Client\MicrosoftAjax.Extended\Tabs\Tabs.pre.js //Added try catch block _setFocus: function (obj) { try { $get("__tab_" + obj.get_element().id).focus(); } catch (e) { } },
I found an error in Tabs of ajax control toolkit, I have downloaded the last version of June 2012 Release, the erros occors in the other versions too.
The error consist in have a TabContainer inside a Tab of other TabContainer, inside an update panel.
When run the application an error of "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."
The error occors only in the IE 8, I dont have IE 7 for test. The error dont occors in IE 9 compatibility mode.
I have resolved this error, add a try/catch block in js script "Tabs.pre.js" where the focus of tab is set.
Attachment the application that occors the bug.
Ivan Patrick.
Comments: I uninstalled Version 4.1.60919 (Sept 2012) and installed Version 4.1.60623 (June 2012) which stated that this issue was fixed in that release, but the same problem is there. Fix is listed on http://ajaxcontroltoolkit.codeplex.com/workitem/27053 but this was not added to the source code. I checked the source and the fix is definately not in there. Just need a try catch block added to Client\MicrosoftAjax.Extended\Tabs\Tabs.pre.js //Added try catch block _setFocus: function (obj) { try { $get("__tab_" + obj.get_element().id).focus(); } catch (e) { } },