Hide Ribbon Bar, keep window title

5 posts, 2 answers
  1. Alex
    Alex avatar
    3 posts
    Member since:
    Nov 2018

    Posted 16 Nov 2018 Link to this post

    Hello!

    How do I hide the ribbon bar to keep the window title? Can't understand.

    Or I hide the entire ribbon with the RibbonBar command.Visible = false

    If I try to hide the TabStrip element, I have an empty bar from the window title to the next component.

  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    2823 posts

    Posted 19 Nov 2018 Link to this post

    Hello Alex,

    You can hide the following element and the title bar will remain visible:
    radRibbonBar1.RibbonBarElement.TabStripElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
    radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
    radRibbonBar1.RibbonBarElement.ExpandButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

    I hope this will be useful. Let me know if you have additional questions.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Alex
    Alex avatar
    3 posts
    Member since:
    Nov 2018

    Posted 19 Nov 2018 in reply to Dimitar Link to this post

    Unfortunately it did not help (see screenshot). Instead of collapsed ribbon, empty space. In PageView below set Dock = DockStyle.Fill  and even Location is set to 0.0. But he still does not use this space.
  4. Answer
    Dimitar
    Admin
    Dimitar avatar
    2823 posts

    Posted 20 Nov 2018 Link to this post

    Hi Alex,

    You can use the maximum size:
    radRibbonBar1.MaximumSize = new Size(0, 30);

    Please note that the ribbon bar has a built-in collapse/expand functionality, you can use the expand button (under the close button) or double-click any tab.

    Should you have any other questions do not hesitate to ask.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  5. Alex
    Alex avatar
    3 posts
    Member since:
    Nov 2018

    Posted 20 Nov 2018 in reply to Dimitar Link to this post

    Thank you very much, now everything is working correctly!
Back to Top