Completed
Last Updated: 23 Dec 2014 11:31 by ADMIN
ADMIN
Dimitar
Created on: 16 Dec 2014 08:43
Category: RibbonBar
Type: Bug Report
0
FIX. RadRibbonBar - when the ribbon is collapsed and tab visibility is changed the ribbon is expanded for a second.
To reproduce:
public RadRibbonForm1()
{
    InitializeComponent();
    radRibbonBar1.Expanded = false;
}     

private void button1_Click(object sender, EventArgs e)
{
    if (ribbonTab2.Visibility == Telerik.WinControls.ElementVisibility.Visible)
    {
        ribbonTab2.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
    }
    else
    {
        ribbonTab2.Visibility = Telerik.WinControls.ElementVisibility.Visible;
    }
}

Workaround:
private void button1_Click(object sender, EventArgs e)
{
  
    this.radRibbonBar1.RootElement.SuspendLayout();
    if (ribbonTab2.Visibility == Telerik.WinControls.ElementVisibility.Visible)
    {
        ribbonTab2.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
    }
    else
    {
        ribbonTab2.Visibility = Telerik.WinControls.ElementVisibility.Visible;
    }
    this.radRibbonBar1.RootElement.ResumeLayout(false);          
}
0 comments