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

Treeview as a property problem

1 Answer 39 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
H.
Top achievements
Rank 1
H. asked on 25 Feb 2011, 11:11 PM
I try to use the RadTreeview as a property in the class like this

 

public class ClassName: WebAdminPageBase

 

{

 

public RadTreeView trvGlobalNavFooter { get; set; }

 

...
}
But I get the error
Error 1 The type 'System.Web.UI.IScriptControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. D:\Projects\Henry's Work area\NIAMS.GlobalNav\NIAMS.GlobalNavAndFooterAdmnSettings\NIAMSGlobalNavFootersetng.cs 21 28 NIAMS.GlobalNavAndFooterAdmnSettings


When I use RadTreeview as variable it works lik this

 

protected override void OnLoad(EventArgs e)

 

 

{

 

 

RadTreeView trvGlobalNavFooter = new RadTreeView();
...
}

The problem is that I need to use RadTreeview as a property. How Can I fix this problem??
Thx
HANK

 

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 02 Mar 2011, 03:17 PM
Hi H.,

This is very strange since the error message has nothing to do with the RadTreeView. You could try to clean and rebuild your solution. If the problem still occurs, you could send us a runnable sample showing the issue. This way we could investigate it in depth.

All the best,
Petar Mladenov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
TreeView
Asked by
H.
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or