I've been using the Treeview with the verson 2009.3.9.1103 with ASP.NET MVC without any problems, but the newest version (2009.3.1314.35) the context menu fails without making a short change that is demonstracted below. Here is the area for the area occuring:
Complete Error:
'theForm' is undefined Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_MainContent_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1314.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a603d133a-f943-435d-a80d-57457cc55f4a%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3ae524c98b%3ae330518b%3ac8618e41%3ae4f8f289, line 5622 character 1
The fix is simple:
1. Add a form to the page (anywhere, doesnt require the control inside either) then give it an id;
2. Add a simple javascript script at the end of the page: var theForm = document.getElementById("form1");
The form element isnt required in this instance, so is there a new setting that i have missed to supress the error and continue presenting the context menu?
I realize the control is out of comfort zone here, but is there an alternative fix?
if(!$telerik.isIE||document.readyState=="complete"||document.readyState=="interactive"){this._getContextMenuElement().parentNode.removeChild(this._getContextMenuElement()); |
var b=theForm||document.body; //<--- Error here: 'theForm' is undefined |
b.insertBefore(this._getContextMenuElement(),b.firstChild); |
this._detached=true; |
} |
Complete Error:
'theForm' is undefined Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_MainContent_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1314.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a603d133a-f943-435d-a80d-57457cc55f4a%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3ae524c98b%3ae330518b%3ac8618e41%3ae4f8f289, line 5622 character 1
The fix is simple:
1. Add a form to the page (anywhere, doesnt require the control inside either) then give it an id;
2. Add a simple javascript script at the end of the page: var theForm = document.getElementById("form1");
The form element isnt required in this instance, so is there a new setting that i have missed to supress the error and continue presenting the context menu?
I realize the control is out of comfort zone here, but is there an alternative fix?