Hello :
I have a TabContainer in an Update Panel. When ever an event fires in an update Panel such as Button onclick , the TabContainer dissappears.
I also tried to move update Panel inside the TabPanel . I tested this at 2 different Places. One is on a Page and the other sits in a panel that is displayed by Modal Popup. When the event fires , the one in the Page is still visble and I have a JS error . The one that sits in the ModalPopup dissappears with same JS error.
Here is the error , I am seeing
this.get_element() has no properties
_app_onload(Object _disposableObjects=[9] _components=Object,Object _components=[9] _isPartialLoad=true)ScriptResource.ax... (line 217)
(no name)()ScriptResource.ax... (line 50)
_handler(Object _disposableObjects=[9] _components=Object,Object _components=[9] _isPartialLoad=true)ScriptResource.ax... (line 2503)
Sys$_Application$raiseLoad()ScriptResource.ax... (line 3754)
Sys$WebForms$PageRequestManager$_pageLoaded(false)ScriptResource.ax... (line 1191)
Sys$WebForms$PageRequestManager$_scriptsLoadComplete()ScriptResource.ax... (line 1229)
(no name)()ScriptResource.ax... (line 50)
Sys$_ScriptLoader$_loadScriptsInternal()ScriptResource.ax... (line 3297)
Sys$_ScriptLoader$_loadScriptsInternal()ScriptResource.ax... (line 3290)
Sys$_ScriptLoader$_loadScriptsInternal()ScriptResource.ax... (line 3290)
Sys$_ScriptLoader$_loadScriptsInternal()ScriptResource.ax... (line 3290)
Sys$_ScriptLoader$_loadScriptsInternal()ScriptResource.ax... (line 3290)
Sys$_ScriptLoader$loadScripts(0,function(),null,null)ScriptResource.ax... (line 3198)
Sys$WebForms$PageRequestManager$_onFormSubmitCompleted(Object _webRequest=Object _xmlHttpRequest=XMLHttpRequest,Object)ScriptResource.ax... (line 1177)
(no name)()ScriptResource.ax... (line 50)
_handler(Object _webRequest=Object _xmlHttpRequest=XMLHttpRequest,Object)ScriptResource.ax... (line 2503)
Sys$Net$WebRequest$completed(Object)ScriptResource.ax... (line 4458)
_onReadyStateChange()ScriptResource.ax... (line 4009)
this.get_element().style.visibility = 'visible';
Can any please let me know how this problem can be resolved.
Thanks,
Rajesh
After little struggle , I found that TabstripContainer when in update Panel disappears.
For Ex i have this secnario :
<Page>
<updatepanel>
<usercontrol>
<TabStripContainer></TabstripContainer>
</usercontrol>
</updatepanel>
</Page>
The TabstripContainer in UserControl dissappears when an even fires in UserControl.
So i need to arrange the above as follows
<page>
<usercontrol>
<TabStripContainer>
<TabPanel>
<updatepanel
</updatePanel>
</TabPanel>
</TabstripContainer>
</usercontrol>
</page>
Hopefully this issue will be resolved. cause update panel is being used alot for partial rendering.
I have the same problem with TabContainer disappearing after a click on a button outside of it when both the TabContainer and the button are contained in an UpdatePanel.
Are there any solutions for this problem yet?
I must have the button in same UpdatePanel as TabContainer, but visually below the container.
Have you seen this thread:http://forums.asp.net/thread/1549317.aspx
Thank you very much! This fixes the bug! Sorry for not searching forums thoroughly enough.
So I understand that we need to modify Tabs.js dispose method
to dispose : function() {
Sys.Application.remove_load(this._app_onload$delegate); // this is missing
AjaxControlToolkit.TabContainer.callBaseMethod(this, "dispose");
}
But how are you explicitly using the TabContainer to use this Javascript. I am using AjaxControlKit.dll with no source code.
So what I did is I copied Tab.js into my project and modified the dispose method. And for the tabcontainer , I pasted the path to this Tab.js in
ScriptPath property7.But then I am getting a Type 'AjaxControlToolkit.TabPanel' does not have a public property named 'System.Web.UI.Control'.
What am i doing wrong here.
I took the sources of AjaxControlKit.dll and recompiled them after making the change in Tabs.js
Yep , basically , Jason Hill did the same thing.And it worked.
Yep , basically , Jason Hill did the same thing.And it worked.Thanks
Yep , basically , Jason Hill did the same thing.And it worked.Thanks guys
Note we did a refresh release yesterday (10201) and this issue is addressed in that release. It's available from CodePlex.
No comments:
Post a Comment