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

Changing visibility of richRibbonBar Tab

1 Answer 20 Views
RichTextBox (obsolete as of Q3 2014 SP1)
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 10 Aug 2011, 09:11 AM
Hi,

It seems to me that changing the visibility of a richRibbonBar Tab is not working.

ie:
richRibbonBar1.ShowHomeTab = false;
richRibbonBar1.ShowInsertTab = false;  // ...etc
The tabs still stay visible.

Could you check this out?
Thank you,
Karl

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 11 Aug 2011, 03:22 PM
Hi Karl,

Thank you for writing.

Indeed this property does not work, because it does not contain implementation. However, you can easily implement the desired property in RichRibbonBar project. Here is an example, on how to achieve this for the home tab:
[DefaultValue(true)]
       public bool ShowHomeTab
       {
           get
           {
               if (this.tabHome.Visibility == ElementVisibility.Visible)
               {
                   return true;
               }
               else
               {
                   return false;
               }
           }
           set
           {
               if (value == true)
               {
                   this.tabHome.Visibility = ElementVisibility.Visible;
               }
               else
               {
                   this.tabHome.Visibility = ElementVisibility.Collapsed;
               }
           }
       }

I hope you find this information helpful. We will consider adding implementation for these properties in the online version of the projects.

Should you have any other questions, do not hesitate to contact us. 

Regards,
Stefan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
RichTextBox (obsolete as of Q3 2014 SP1)
Asked by
Karl
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or