Treeview as a property problem

2 posts, 0 answers
  1. H.
    H. avatar
    33 posts
    Member since:
    Feb 2011

    Posted 25 Feb 2011 Link to this post

    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=, 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??


  2. Petar Mladenov
    Petar Mladenov avatar
    2883 posts

    Posted 02 Mar 2011 Link to this post

    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!
  3. DevCraft banner
Back to Top