Looking at the documentation, there is no clear way that I see to delete/remove a tab. There are addTab, addCopy, moveTab, etc... but no deleteTab or removeTab or even closeTab.
I need to completely delete a tab. Has anyone seen a way to do this client-side?
Hi Viktor,
I upgraded my infragistics dll to Infragistics35.Web.v11.2.dll for same sample application and still had same "Microsoft JScript runtime error: Unable to get value of the property '0': object is null or undefined" error poping up. It does not display error on firefox but it hangs when you try to remove middle tab.
Browsers tested on: IE9, IE8 and Firefox
IDE used: Visual Studio 2008 & 2010 ( Same result on both)
OS used : Windows 7
Target Framework: .net 3.5
AjaxControlToolkit used: 3.5.60623.0
If you are not able to reproduce this issue. I can send you precompiled published folder to test but for that I may need your personal email address because this site has size restrictions for attachments.
Hi Dk,
I retested sample with same results.
I noticed that your sample uses old Infragistics35.Web.v10.2.dll. I think that is the reason why I could not reproduce that. The earliest dll on my machine is Infragistics35.Web.v11.1.
I looked at history in tfs to complare some source files and found some differences, which may affect that scenario. For example, the newer versions of WebTab force instantiation of templates at run time within OnInit event. Older version waited for CreateChildControls or OnPreRender/Render.
I suggest you to upgrade NetAdvantage to more recent version.
I upgraded my AjaxControlToolkit dll but still getting same issue. I am sending you my sample code with your changes again. And I am also running this in VisualStudio2008
Thanks,
Dk
I could not reproduce JScript error on the first attempt to remove 2nd tab, but only after repeating add/remove actions few times. Last time I tested your codes with asp:ScriptManager. Today I added reference to AjaxControlToolkit and replaced ScriptManager with asp:ToolkitScriptManger.
Both cases worked exactly same way and exception was raised in MicrosoftAjaxWebForms.debug.js.
Under ScriptManager it was at the end of
function Sys$WebForms$PageRequestManager$_endPostBack(error, executor, data) {...}
and in case of ToolkitScriptManager it was at the end of a similar function
_endPostBack: function PageRequestManager$_endPostBack(error, executor, data) {...}
I tested sample within a website of VisualStudio2008. AjaxControlToolkit.dll: 11/16/2011, File Version: 3.5.51116.0.
Maybe there is something else is different in our samples, or there are different versions of AjaxControlToolkit.
HI V,
I added this FixID method in the sample application I had send to you and it was giving still same JScript error. I happens if you open three tab and close the center one i.e., Tab0 Tab1 and Tab2. If you try to close Tab1 you can see that JScript.
Thanks for immediate response