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

3 posts, 1 answers
  1. sebastien
    sebastien avatar
    37 posts
    Member since:
    May 2017

    Posted 13 Feb 2018 Link to this post

    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. Answer
    Hristo
    Admin
    Hristo avatar
    1504 posts

    Posted 14 Feb 2018 Link to this post

    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.
  3. sebastien
    sebastien avatar
    37 posts
    Member since:
    May 2017

    Posted 14 Feb 2018 in reply to Hristo Link to this post

    Great thanks again!
Back to Top