Add Custom Items in RadRibbonBarGroup "Add an Item" list

2 posts, 1 answers
  1. Manish Mishra
    Manish Mishra avatar
    11 posts
    Member since:
    Feb 2010

    Posted 30 Oct 2012 Link to this post

       I have made my custom ribbon bar like this:
      
    public class TMRibbonBar:RadRibbonBar
    {
    }

    in similar fashion, I have made my custom buttons ie.RadButtonElement, RadCheckBoxElement.
    What I want is how can I add a button of my own in the "Add an Item" option of "Right Click - Context Menu" of "RadRibbonBarGroup". I mean, my custom button should appear in the list to be selected.

    I can add my custom button in the RadRibbonBarGroup dynamically, but how can I do it through the UI?
    I hope am not raising a totally invalid requirement.
  2. Answer
    Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 02 Nov 2012 Link to this post

    Hello Manish,

    Thank you for writng.

    Extending the designer of RadRibbonBar is not an easy task as the control design time is very complex. To handle all cases you will have to override approximately 15 classes. Instead, I will suggest that you add a regular button in design time and then just open the Designer file and replace the type from RadButtonElement to your CustomButtonElement. 

    I hope this helps.

    All the best,
    Stefan
    the Telerik team
    Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top