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

Can't add item in RibbonBarItem Collection Editor

3 Answers 94 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 08 Mar 2012, 03:40 PM
Hi,

I guess this is a newbie question.

I want to try the RadRibbonBar, but I can't add items to the groups.
When I try to add an item in the RibbonBarItem Collection Editor dialog, I get the following message.

"Cannot create an abstract class"

I can't figure out what I'm doing wrong - can anyone give me a hint?

Thanks.

/Thomas

3 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 12 Mar 2012, 09:27 PM
Thomas:

You may want to watch this TelerikTV video which will provide some insights on the process of customizing a RadRibbonBar:

RadRibbonBar - Using Templates

Hope this helps!
0
Accepted
Bozhidar
Telerik team
answered on 13 Mar 2012, 09:46 AM
Hello Thomas,

The problem is that the Item class is an abstract class, which is a base class for all items of the RibbonBar (Buttons, SplitButtons, Menus etc.). You cannot add an item of class Item directly to the group. It has to be one of the aforementioned classes. And at the moment, you can only do it by manually adding the items in the code. You can find what kind of items the RibbonBar supports, and how to declare them in the following demo:
http://demos.telerik.com/aspnet-ajax/ribbonbar/examples/items/defaultcs.aspx 

We've already noticed that the option to add Items is available in the properties window, since it is generated automatically. We will fix this issue by hiding this option for the next release.  
 
Kind regards,
Bozhidar
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.
0
Thomas
Top achievements
Rank 1
answered on 13 Mar 2012, 10:30 AM
Okay, thanks!

/Thomas
Tags
RibbonBar
Asked by
Thomas
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Bozhidar
Telerik team
Thomas
Top achievements
Rank 1
Share this question
or