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

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

7 Answers 558 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
wnl
Top achievements
Rank 1
wnl asked on 24 Apr 2009, 07:27 AM
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.

7 Answers, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 24 Apr 2009, 08:00 AM
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.
0
wnl
Top achievements
Rank 1
answered on 24 Apr 2009, 08:12 AM
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...).
0
Helen
Telerik team
answered on 24 Apr 2009, 09:14 AM
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.
0
wnl
Top achievements
Rank 1
answered on 24 Apr 2009, 09:26 AM
<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> 

0
Helen
Telerik team
answered on 24 Apr 2009, 10:27 AM
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.
0
Balu
Top achievements
Rank 1
answered on 09 Oct 2012, 07:31 AM
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
0
mushtary03
Top achievements
Rank 1
answered on 01 Jun 2015, 09:59 AM
ok its works
Tags
ToolBar
Asked by
wnl
Top achievements
Rank 1
Answers by
Helen
Telerik team
wnl
Top achievements
Rank 1
Balu
Top achievements
Rank 1
mushtary03
Top achievements
Rank 1
Share this question
or