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:






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







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















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


  2. Kate
    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:

    Kind regards,
    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.
Back to Top