Unable to cast object of type telerik.web.ui.radtoolbar to type telerik.web.ui.controlitemcontainer

8 posts, 0 answers
  1. wnl
    wnl avatar
    106 posts
    Member since:
    Aug 2007

    Posted 24 Apr 2009 Link to this post

    Hi,
    in my project in VisualStudio 2008 when I want to add RadToolbar, I get:
    http://img412.imageshack.us/img412/8734/clipboard02s.jpg
    What's wrong?
    Telerik Version: 2009 SP1.
    Thanks.
  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 24 Apr 2009 Link to this post

    Hi,

    Could you please try to close and open the Visual Studio again? The error should disappear.
    If this doesn't help, could you please send us a sample project which demonstrates the issue to examine it locally?

    Regards,
    Helen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. wnl
    wnl avatar
    106 posts
    Member since:
    Aug 2007

    Posted 24 Apr 2009 Link to this post

    Restart VS doesn't help.
    It's a huge project and it's very difficult to prepare a sample for You (lots inherited class, master pages...).
  5. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 24 Apr 2009 Link to this post

    Hello,

    Could you send us only the RadToolBar declaration to examine it locally?

    Regards,
    Helen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. wnl
    wnl avatar
    106 posts
    Member since:
    Aug 2007

    Posted 24 Apr 2009 Link to this post

    <telerik:RadToolBar ID="RadToolBar122" Runat="server" Skin="MidasBlue" EnableEmbeddedSkins="false"
                                    <Items> 
           <telerik:RadToolBarButton runat="server" Text="Button 1"
           </telerik:RadToolBarButton> 
           <telerik:RadToolBarDropDown runat="server" Text="DropDown 1"
               <Buttons> 
                   <telerik:RadToolBarButton runat="server" Text="Child Button 1"
                   </telerik:RadToolBarButton> 
                   <telerik:RadToolBarButton runat="server" Text="Child Button 2"
                   </telerik:RadToolBarButton> 
               </Buttons> 
           </telerik:RadToolBarDropDown> 
           <telerik:RadToolBarSplitButton runat="server" Text="SplitButton 1"
               <Buttons> 
                   <telerik:RadToolBarButton runat="server" Text="Child Button 1"
                   </telerik:RadToolBarButton> 
                   <telerik:RadToolBarButton runat="server" Text="Child Button 2"
                   </telerik:RadToolBarButton> 
               </Buttons> 
           </telerik:RadToolBarSplitButton> 
       </Items>      
                                </telerik:RadToolBar> 

  7. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 24 Apr 2009 Link to this post

    Hi,

    Thank you for the provided code. Unfortunately we couldn't reproduce the problem locally and we are not exactly sure what might be causing it.
    Could you please review the following forum post which discusses a similar problem:

    http://www.telerik.com/community/forums/aspnet-ajax/menu/menu-problem-error-creating-control-at-design-time.aspx

    It also links a blog from microsoft:
    http://blogs.microsoft.co.il/blogs/kolbis/archive/2008/06/29/unable-to-cast-object-from-type-x-to-type-x.aspx

    Greetings,
    Helen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  8. Balu
    Balu avatar
    3 posts
    Member since:
    Apr 2009

    Posted 09 Oct 2012 Link to this post

    Hi, 

      I am using vs 2010. am also getting same problem, i saw that both links, but its didn't not working. Please give me any suggestion


    Thanks
    Balaji
  9. mushtary03
    mushtary03 avatar
    1 posts
    Member since:
    May 2015

    Posted 01 Jun 2015 in reply to Helen Link to this post

    ok its works
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017