Keeping Ribbonbar Collapsed

2 posts, 0 answers
  1. Jason
    Jason avatar
    11 posts
    Member since:
    Nov 2013

    Posted 05 Oct Link to this post

    I would like the Ribbonbar to always appear collapsed even when I select some of the tabs on it.  I want to be able to expand it only when certian criteria are met.

    So far I have been unable to get the ribbonbar to start off Collapsed, nor can I get it to remain collapsed.

     

    Please Advise

     

    Thanks

     

    Jason

  2. Dimitar
    Admin
    Dimitar avatar
    1871 posts

    Posted 06 Oct Link to this post

    Hello, Jason,

    You can use the following properties and event:
    public RadForm1()
    {
        InitializeComponent();
       
        radRibbonBar1.RibbonBarElement.CollapseRibbonOnTabDoubleClick = false;
        radRibbonBar1.RibbonBarElement.Expanded = false;
        radRibbonBar1.RibbonBarElement.ShowExpandButton = false;
       
        radRibbonBar1.RibbonBarElement.Popup.PopupOpening += Popup_PopupOpening;
         
    }
       
    private void Popup_PopupOpening(object sender, CancelEventArgs args)
    {
        args.Cancel = true;
       
    }

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

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top