We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

To add a customized RibbonTab in SpreadsheetRibbon

Thread ID:

Created:

Updated:

Platform:

Replies:

117155 Aug 25,2014 05:04 AM UTC Sep 1,2014 06:30 PM UTC WPF 1
loading
Tags: SpreadsheetControl(Classic)
stephly
Asked On August 25, 2014 05:04 AM UTC

Hi ,
I'm using SpreasheetRibbon control . Is it possible to add customized Ribbontabs to this?
Thanks

Kanimozhi Bharathi [Syncfusion]
Replied On September 1, 2014 06:30 PM UTC

Hi Stephly,

Apologize for the delay.

We have analysed your query. You can add a customized Ribbon Tabs in SpreadsheetRibbon like the below snippet

CODE SNIPPET:

void SpRibbon_Loaded(object sender, RoutedEventArgs e)

{

var ribbon = (this.SpRibbon as FrameworkElement).FindElementOfType<Ribbon>();

if (ribbon != null)

{

RibbonTab rb = new RibbonTab();

rb.Caption = "Custom";

 

RibbonButton Button1 = new RibbonButton();

Button1.Label = "Hide 1st Row";

Button1.Click += new System.Windows.RoutedEventHandler(Button1_Click);

CustomRibbonBar = new RibbonBar();

CustomRibbonBar.Header = "CustomOptions";

CustomRibbonBar.Items.Add(Button1);

CustomRibbonBar.IsLauncherButtonVisible = false;

 

rb.Items.Add(CustomRibbonBar);

ribbon.Items.Add(rb);

}

}

We have also prepared a sample based on your requirement. Please see the below link for your reference

Please let us know if you have any queries.

Thanks

Kanimozhi B

 


Attachment: CustomRibbonTab_6c9c025b.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;