This is a migrated thread and some comments may be shown as answers.

Fluent with RadRibbonBar : Down Arrow to Items always visible event if no item in list

2 Answers 54 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
sebastien
Top achievements
Rank 1
sebastien asked on 13 Feb 2018, 07:34 PM

Fluent with RadRibbonBar : Down Arrow to Items always visible event if no item in list

 

Included a screen shot, mouse over nor mouse click on the down arrow shows anything (normal cause it's empty)

 

Here's my designer's part that was generated:

//
// radRibbonBar2
//
this.radRibbonBar2.ApplicationMenuAnimantionType = Telerik.WinControls.UI.FadeAnimationType.None;
this.radRibbonBar2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(254)))));
this.radRibbonBar2.CommandTabs.AddRange(new Telerik.WinControls.RadItem[] {
this.radRibbonBarCommandTab2,
this.ribbonTab2,
this.ribbonTab1});
this.radRibbonBar2.ExitButton.Text = "Exit";
this.radRibbonBar2.Location = new System.Drawing.Point(0, 0);
this.radRibbonBar2.Name = "radRibbonBar2";
this.radRibbonBar2.OptionsButton.Text = "Options";
this.radRibbonBar2.RootElement.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren;
this.radRibbonBar2.Size = new System.Drawing.Size(1096, 171);
this.radRibbonBar2.StartButtonImage = global::MorneauShepell.Parametrization.Windows.Forms.Properties.Resources.ArielWhite;
this.radRibbonBar2.TabIndex = 2;
this.radRibbonBar2.Text = "ArielVal";
this.radRibbonBar2.ThemeName = "Fluent";
((Telerik.WinControls.UI.RadRibbonBarElement)(this.radRibbonBar2.GetChildAt(0))).Text = "ArielVal";

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 14 Feb 2018, 02:40 PM
Hi Sebastien,

This scenario needs to be handled outside of the theme. You can easily collapse the arrow element if the StartMenuItems collection is empty: 
if (this.radRibbonBar1.StartMenuItems.Count == 0)
{
    this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.ArrowButton.Visibility = ElementVisibility.Collapsed;
}

I hope this helps. Let me know if you have other questions.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
sebastien
Top achievements
Rank 1
answered on 14 Feb 2018, 02:52 PM
Great thanks again!
Tags
Themes and Visual Style Builder
Asked by
sebastien
Top achievements
Rank 1
Answers by
Hristo
Telerik team
sebastien
Top achievements
Rank 1
Share this question
or