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

Hide border on Document tabs.

5 Answers 264 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Troy
Top achievements
Rank 1
Troy asked on 22 Aug 2011, 11:04 PM
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.

Thanks.

5 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 Aug 2011, 02:22 PM
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.
 
Regards,
Stefan
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 >>

0
Jorge
Top achievements
Rank 1
answered on 06 Feb 2012, 07:34 PM
How can you hide the border in Visual Basic using Q3' 11?
0
Stefan
Telerik team
answered on 09 Feb 2012, 12:00 PM
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,
Stefan
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Karuppasamy
Top achievements
Rank 1
answered on 20 Sep 2014, 05:13 AM
Hi,

 i'd like to remove line from RadPageView. 

Here i have attached screen shot..
0
Stefan
Telerik team
answered on 23 Sep 2014, 11:23 AM
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. 

Regards,
Stefan
Telerik
 
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.
 
Tags
Dock
Asked by
Troy
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Jorge
Top achievements
Rank 1
Karuppasamy
Top achievements
Rank 1
Share this question
or