Help button at the ribbon

12 posts, 1 answers
  1. Fernando
    Fernando avatar
    4 posts
    Member since:
    Jun 2008

    Posted 18 Jun 2008 Link to this post

    Hi!

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

    Thanks
  2. Answer
    Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 19 Jun 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Fernando
    Fernando avatar
    4 posts
    Member since:
    Jun 2008

    Posted 19 Jun 2008 Link to this post

    Thanks Nikolay!
  5. Antony
    Antony avatar
    12 posts
    Member since:
    May 2009

    Posted 02 Jul 2009 Link to this post

    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
  6. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 03 Jul 2009 Link to this post

    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.
  7. Antony
    Antony avatar
    12 posts
    Member since:
    May 2009

    Posted 03 Jul 2009 Link to this post

    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
  8. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 06 Jul 2009 Link to this post

    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.
  9. Antony
    Antony avatar
    12 posts
    Member since:
    May 2009

    Posted 06 Jul 2009 Link to this post

    That's great news :) Thanks Peter!
  10. Antony
    Antony avatar
    12 posts
    Member since:
    May 2009

    Posted 07 Jul 2009 Link to this post

    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
  11. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 08 Jul 2009 Link to this post

    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.
  12. Antony
    Antony avatar
    12 posts
    Member since:
    May 2009

    Posted 08 Jul 2009 Link to this post

    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
  13. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 09 Jul 2009 Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready