why did i get the error unable to cast object of type 'Telerik.Web.UI.RadTreeview' to type 'Telerik.Web.UI.controlitemcontainer'

Thread is closed for posting
2 posts, 0 answers
  1. John
    John avatar
    7 posts
    Member since:
    Mar 2013

    Posted 11 Mar 2013 Link to this post

    I added the Radtreeview to asp:content and got this error msg. But if I added the RadTreeview to the following:

    <

     

    body>

     

     

    <form id="form1" runat="server">

     

     

    <div>

     

     

     

    <telerik:RadTreeView ID="RadTreeView1" runat="server">

     

     

    </telerik:RadTreeView>

     

     

     

    </div>

     

     

    </form>

     

    </

     

    body>

    no error message. Did anybody have similar issue before? thanks

     

  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 14 Mar 2013 Link to this post

    Hi John,

    The exception that you are getting is a very general one. It indicates that you can not cast an object from one type to another type. Please take a look at the following post where you can fin more information related to similar issues:
    http://stackoverflow.com/questions/12444036/unable-to-cast-object-of-type-x-to-y
    http://www.hanselman.com/blog/FusionLoaderContextsUnableToCastObjectOfTypeWhateverToTypeWhatever.aspx

    Kind regards,
    Kate
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top