This is a migrated thread and some comments may be shown as answers.

TreeView 2009.3.9.1103 &

3 Answers 32 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Matthew Green
Top achievements
Rank 1
Matthew Green asked on 17 Feb 2010, 11:40 AM
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:
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?

3 Answers, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 23 Feb 2010, 09:54 AM
Hello Matthew,

This seems to be a regression problem we've accidentally introduced. We'll fix it in the next version, but for now the workaround you are using is the only available fix.

Sincerely yours,
Dimitar Milushev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Matthew Green
Top achievements
Rank 1
answered on 23 Feb 2010, 03:00 PM
Thank you Dimitar Milushev,

At least its not that big of a problem, just hightly unexpected when something has been working well for a couple of months.

Good work, is there an ETA for the next version 2010 Q1?

Best regards,
Matthew
0
Dimitar Milushev
Telerik team
answered on 24 Feb 2010, 04:34 PM
Hi Matthew,

The Q1 2010 release is scheduled for mid-March.

All the best,
Dimitar Milushev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
Matthew Green
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Matthew Green
Top achievements
Rank 1
Share this question
or