Hide border on Document tabs.

6 posts, 0 answers
  1. Troy
    Troy avatar
    11 posts
    Member since:
    Apr 2009

    Posted 22 Aug 2011 Link to this post

    I'd like to remove the border around the content area.  But I can't figure out how to get access to it.

    I also use a RadPageView and I can get rid of the border by doing

     RadPageViewContentAreaElement contentArea = ((Telerik.WinControls.UI.RadPageViewContentAreaElement)((pageView1.ViewElement).ContentArea));
     contentArea.Padding = new Padding(0);

    I'd like to do something similar but with the Main Document View inside of the Rad Dock.

  2. Stefan
    Stefan avatar
    2911 posts

    Posted 25 Aug 2011 Link to this post

    Hello Troy,

    Thank you for writing.

    The following code should remove the border at hand:
    RadPageViewStripElement el = radPageView1.ViewElement as RadPageViewStripElement;
    el.Padding = new Padding(0, 0, 0, 0);
    documentTabStrip1.TabStripElement.ContentArea.BackColor = Color.FromArgb(191, 219, 255);

    I hope that this covers your case. Should you have any other questions, do not hesitate to contact us.
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. Jorge
    Jorge avatar
    4 posts
    Member since:
    Sep 2012

    Posted 06 Feb 2012 Link to this post

    How can you hide the border in Visual Basic using Q3' 11?
  4. Stefan
    Stefan avatar
    2911 posts

    Posted 09 Feb 2012 Link to this post

    Hi Jorge,

    Thank you for writing.

    Here is the code in VB too:
    Dim el As RadPageViewStripElement = TryCast(radPageView1.ViewElement, RadPageViewStripElement)
    el.Padding = New Padding(0, 0, 0, 0)
    documentTabStrip1.TabStripElement.ContentArea.BackColor = Color.FromArgb(191, 219, 255)

    FYI, you can use our free online code converter tool for converting code between C# and VB. Here is the link: http://converter.telerik.com/ 

    I hope this helps.
    Kind regards,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  5. Karuppasamy
    Karuppasamy avatar
    4 posts
    Member since:
    Apr 2012

    Posted 20 Sep 2014 Link to this post


     i'd like to remove line from RadPageView. 

    Here i have attached screen shot..
  6. Stefan
    Stefan avatar
    2911 posts

    Posted 23 Sep 2014 Link to this post

    Hi Karuppasamy,

    To hide the desired border you can use the following snippet:
    RadPageViewStripElement stripElement = radPageView1.ViewElement as RadPageViewStripElement;
    if (stripElement != null)
        stripElement.ContentArea.BorderPadding = new Padding(0, -2,0,  0);

    Off topic, I would like to kindly ask you to separate the questions that are not related to each other in separate threads. This will keep the forums clean and easy to navigate. 

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top