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

Panel Borders and Docking Labels

2 Answers 214 Views
Panel
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 16 May 2014, 07:06 PM
I'm attempting to create a radPanel with a rounded 3 pixel thick border. 
I would like to dynamically add radLabels to this panel, and dock them to the top, so they stack within the panel. 

I'm finding that the docked labels sit on top of the border, covering it up. I'm also finding that the docked labels remove the rounded corners. 

I realize this is because the border is drawn within the panel, but how can I get the effect I'm looking for? I want the docked labels within the border, maintaining the rounded corners. 

Attached is a screen shot of panel as it is now with an empty blue label docked across the top.

2 Answers, 1 is accepted

Sort by
0
Ben
Top achievements
Rank 1
answered on 16 May 2014, 07:22 PM
Figures I spent hours messing around with the element UIs settings, and 10 minutes after I make this post I find I just needed to add a 3 pixel padding to the panel. 

Thanks
0
Stefan
Telerik team
answered on 19 May 2014, 07:56 AM
Hi Ben,

That is correct, you need to set Padding to the panel in order to move the labels to the inside, hence does not allow them to cover up the panel border.

Should you have any other questions, do not hesitate to open a new thread.

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
Panel
Asked by
Ben
Top achievements
Rank 1
Answers by
Ben
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or