what is namespace to disable tabstrip buttons

2 posts, 0 answers
  1. Philip
    Philip avatar
    7 posts
    Member since:
    Sep 2012

    Posted 05 Jul 2013 Link to this post

    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?
  2. George
    Admin
    George avatar
    500 posts

    Posted 08 Jul 2013 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top