Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Ribbonbar > Hiding a RadRibbonBarGroup

Not answered Hiding a RadRibbonBarGroup

Feed from this thread
  • David avatar

    Posted on Jan 10, 2012 (permalink)

    Hi,

    I have a RadRibbonBar with a RibbonTab and on the Tab I have a few RadRibbonBarGroups I want to hide one of these groups in code. So I have put

    BBG_Toggle.Visibility =
    ElementVisibility.Hidden;

    This hides the RadRibbonBarGroups but the other RadRibbonBarGroups I have on the Tab do not automaticly float to the left of the ribbon bar. I also cannot find a way to move the other groups over eaither. is this possible?

    Thanks
    Attached files

    Reply

  • Ivan Todorov Ivan Todorov admin's avatar

    Posted on Jan 13, 2012 (permalink)

    Hi David,

    Thank you for your question.

    When an element's Visibility is set to Hidden, it continues to occupy its usual space, but it is not drawn on the control (e.g. it still participates in the layout). If you want to hide an element and free the space it occupies, you should set its Visibility to Collapsed:
    BBG_Toggle.Visibility = ElementVisibility.Collapsed;

    I hope you find this useful. Feel free to write back if you have any further questions.

    Kind regards,
    Ivan Todorov
    the Telerik team

    SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Ribbonbar > Hiding a RadRibbonBarGroup
Related resources for "Hiding a RadRibbonBarGroup"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]