Add buttons near Collapse button

3 posts, 0 answers
  1. laimonassutkus
    laimonassutkus avatar
    9 posts
    Member since:
    Mar 2017

    Posted 10 Apr Link to this post

    Hi is there a way to add buttons near a collapse button in ribbon bar (see picture for more detail)?

     

    Thank you :)

  2. laimonassutkus
    laimonassutkus avatar
    9 posts
    Member since:
    Mar 2017

    Posted 10 Apr Link to this post

    Well this was not entirely what i wanted. But found a suitible answer. Because i needed help button the answer is:
    radRibbonBar.HelpButton.Visibility = ElementVisibility.Visible;

     And on top of this i put MS2013 theme.

  3. Hristo
    Admin
    Hristo avatar
    1016 posts

    Posted 10 Apr Link to this post

    Hello Laimonas,

    Thank you for writing.

    I am glad that the help button fits well your actual setup. In case you would like to add additional elements next to the expand button you can access the ButtonsContainer.Children collection: 
    RadButtonElement element = new RadButtonElement() { Text = "Button" };
    element.BorderElement.ShouldPaint = true;
    element.BorderElement.ForeColor = Color.FromArgb(110, 153, 210);
    element.ThemeRole = "RibbonBarExpandButton";
    element.Image = null;
     
    this.radRibbonBar1.RibbonBarElement.ButtonsContainer.Children.Insert(0, element);

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo
    Telerik by Progress
    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