Hiding a RadRibbonBarGroup

2 posts, 0 answers
  1. David
    David  avatar
    66 posts
    Member since:
    Aug 2010

    Posted 10 Jan 2012 Link to this post


    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 =

    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?

  2. Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 13 Jan 2012 Link to this post

    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).

Back to Top