Hi
When I try to dynamically add a RadTreeView to a page, VS returns a JScript error, inside the Telerik.Web.UI.RadTreeView._preInitialize function.
This is my page :
my code-behind :
VS throws a null exception error, but the text is :
Microsoft JScript runtime error: 'null' is null or not an object
This is the code where the exception is thrown (line indicated) :
I've downloaded the new version of the controls (2008 Q2 1001), but they cause the same error.
When I try to dynamically add a RadTreeView to a page, VS returns a JScript error, inside the Telerik.Web.UI.RadTreeView._preInitialize function.
This is my page :
<body> |
<form id="form1" runat="server"> |
<div> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
</telerik:RadScriptManager> |
</div> |
</form> |
</body> |
my code-behind :
namespace DynamicTreeViewTest |
{ |
public partial class _Default : System.Web.UI.Page |
{ |
protected void Page_Load(object sender, EventArgs e) |
{ |
Telerik.Web.UI.RadTreeView testtree = new Telerik.Web.UI.RadTreeView(); |
testtree.ID = "testtree"; |
Telerik.Web.UI.RadTreeNode testnode = new Telerik.Web.UI.RadTreeNode("Node 1"); |
testtree.Nodes.Add(testnode); |
this.Controls.Add(testtree); |
} |
} |
} |
VS throws a null exception error, but the text is :
Microsoft JScript runtime error: 'null' is null or not an object
This is the code where the exception is thrown (line indicated) :
Telerik.Web.UI.RadTreeView._preInitialize=function(_219,_21a){ |
var _21b=$get(_219); |
_21b.scrollTop=_21a; <-- Error |
if(Telerik.Web.UI.RadTreeView._isRtl(_21b)){ |
Telerik.Web.UI.RadTreeView._initializeRtl(_21b); |
} |
}; |
I've downloaded the new version of the controls (2008 Q2 1001), but they cause the same error.