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

Help button at the ribbon

11 Answers 196 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Fernando
Top achievements
Rank 1
Fernando asked on 18 Jun 2008, 06:24 PM
Hi!

Is it possible to put a help button at the top right corner, just like ms-office?

Thanks

11 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 19 Jun 2008, 09:14 AM
Hi Fernando,

It is possible to put a button at the top right corner, below the close button. You have to create a RadButtonElement, insert it in the RadTabStripElement TabLayoutPanel and then align it appropriately.
I have demonstrated the approach in the sample project attached.

If you have additional questions, feel free to contact me.

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Fernando
Top achievements
Rank 1
answered on 19 Jun 2008, 11:57 AM
Thanks Nikolay!
0
Antony
Top achievements
Rank 1
answered on 02 Jul 2009, 04:33 PM
Hi There,

This advice seems to be outdated with the latest RadRibbon version, the example produces an ArgumentOutOfRangeException... Is there any way to achieve this with the latest version of RadRibbon?

Thanks very much!

-Antony
0
Peter
Telerik team
answered on 03 Jul 2009, 12:06 PM
Hello Antony,

Thank you for contacting us.
Please, find attached  the updated project.

Greetings,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Antony
Top achievements
Rank 1
answered on 03 Jul 2009, 12:28 PM
Thanks very much Peter, that works great now :)

My only concern is that future Ribbon revisions may break this positioning though, do you think it's likely that this positioning will become a more "supported" feature in a future version?

Thanks again,

-Antony
0
Peter
Telerik team
answered on 06 Jul 2009, 07:19 AM
Hello Antony,

I would like to inform you that this feature will be added in Q2 2009 SP1 release of RadControls for WinForms.

Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Antony
Top achievements
Rank 1
answered on 06 Jul 2009, 02:15 PM
That's great news :) Thanks Peter!
0
Antony
Top achievements
Rank 1
answered on 07 Jul 2009, 04:16 PM
Me again! :)

Is there any way to get this working with the RadRibbonForm in the Q2 2009 release? The current solution seems to cause an index-out-of-bounds type error within the Telerik code.

As ever thanks very much for any help you can give!

-Antony
0
Peter
Telerik team
answered on 08 Jul 2009, 02:49 PM
Hello Antony,

Please, excuse us for the inconvenience. To remove the exception, replace this line of code
 
  this.radRibbonBar1.RootElement.Children[0].Children[2].Children.Insert(0, elem);  

with
 
  this.radRibbonBar1.RootElement.Children[0].Children[2].Children.Add(elem);  

I have also attached the updated project.
 
Once we release SP1 of Q2 2009 you will be able to access the Help Button this way:
 
this.radRibbonBar1.HelpButton.Visibility = ElementVisibility.Hiden;//Or visible 
this.radRibbonBar1.HelpButton.Image = myImage; 

Don't hesitate to contact us if you have other questions.



Sincerely yours,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Antony
Top achievements
Rank 1
answered on 08 Jul 2009, 03:21 PM
Thanks Peter, that worked great (really i should have tried that one myself!)

For anyone else who's interested I also added "radBtnHelp.Margin = new Padding(0,3,3,0)" just to make the button line up with the tabs more nicely :)

Certianly the code for SP1 looks much simpler!

-Antony
0
Peter
Telerik team
answered on 09 Jul 2009, 12:12 PM
Hello Antony,

I want to share little bit more what will be available in Q2 SP1 about Ribbon Help button.

We will introduce two properties that will allow you to manage the Ribbon Help button:
  • bool ShowHelpButton - Get or sets value indicating whether RibbonBar Help button is visible or hidden.
  • RadImageButtonElement HelpButton - that represent the Ribbon Help button. For example, you should use this property to subscribe to click event:

this.radRibbonBar1.HelpButton.Click+=new EventHandler(HelpButton_Click); 

These properties will also be available in RadRibbonBarElement.


Greetings,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
RibbonBar
Asked by
Fernando
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Fernando
Top achievements
Rank 1
Antony
Top achievements
Rank 1
Peter
Telerik team
Share this question
or