Can't add item in RibbonBarItem Collection Editor

4 posts, 1 answers
  1. Thomas
    Thomas avatar
    14 posts
    Member since:
    Mar 2012

    Posted 08 Mar 2012 Link to this post

    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
  2. jumpstart
    jumpstart avatar
    479 posts
    Member since:
    Nov 2011

    Posted 12 Mar 2012 Link to this post

    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!
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 13 Mar 2012 Link to this post

    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.
  5. Thomas
    Thomas avatar
    14 posts
    Member since:
    Mar 2012

    Posted 13 Mar 2012 Link to this post

    Okay, thanks!

    /Thomas
Back to Top