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

what is namespace to disable tabstrip buttons

1 Answer 67 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 05 Jul 2013, 05:59 PM
This is my 1st experience with Telerik.

I finally found the properties to hide the RadPageView strip's buttons for moving tabs left/right and the X to remove the tab from the collection.  However, apparently (elsewhere in this forum) there is a Telerik bug that prevents changes made in the VS IDE from persisting and the recommended solution is to set properties in the form's load event.

I cannot figure out the namespace to the properties I need to set.  What are the properties to disable the above-mentioned buttons?

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 08 Jul 2013, 01:45 PM
Hello Philip,

Thank you for writing.

You can remove the buttons from the strip buttons very easily with the code below:
void Form1_Load(object sender, EventArgs e)
{
    RadPageViewStripElement stripElement = this.radPageView1.ViewElement as RadPageViewStripElement;
    if (stripElement != null)
    {
        stripElement.StripButtons = StripViewButtons.None;
    }
}

The StripViewButtons enumeration has many options, enabling you to select the buttons that best fit your needs.

I hope this helps.
 
Regards,
George
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
PageView
Asked by
Philip
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or