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

Add Custom Items in RadRibbonBarGroup "Add an Item" list

1 Answer 93 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Manish Mishra
Top achievements
Rank 1
Manish Mishra asked on 30 Oct 2012, 08:12 PM
   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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 02 Nov 2012, 09:54 AM
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.
Tags
RibbonBar
Asked by
Manish Mishra
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or