5 Answers, 1 is accepted
0
Hello Sofia,
Thank you for contacting us.
Have you tried setting the Padding property of the panelBar's group caption element? Every RadPanelBarGroupElement has a child element called caption element. To gain access to it you can use the GetCaptionElement method of RadPanelBarGroupElement. Once you get the instance of this caption element you are free to set its Padding property. To increase caption's height you should modify the top and bottom parts of the Padding property.
I believe this will help you. You can write me back if I could be of further help.
Kind regards,
Boyko Markov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you for contacting us.
Have you tried setting the Padding property of the panelBar's group caption element? Every RadPanelBarGroupElement has a child element called caption element. To gain access to it you can use the GetCaptionElement method of RadPanelBarGroupElement. Once you get the instance of this caption element you are free to set its Padding property. To increase caption's height you should modify the top and bottom parts of the Padding property.
I believe this will help you. You can write me back if I could be of further help.
Kind regards,
Boyko Markov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Sofia
Top achievements
Rank 1
answered on 17 May 2008, 06:11 AM
Dear Boyko,
I thank you for your reply.
I need to increase the font size of the caption in RadPanelBarGroupElement. How can increasing the padding help with that?
However, I did try to do the following:
Error 1 Cannot modify the return value of 'Telerik.WinControls.RadElement.Padding' because it is not a variable
Error 2 Cannot modify the return value of 'Telerik.WinControls.RadElement.Padding' because it is not a variable
Error 3 Property or indexer 'System.Drawing.Font.SizeInPoints' cannot be assigned to -- it is read only
Please help..
I thank you for your reply.
I need to increase the font size of the caption in RadPanelBarGroupElement. How can increasing the padding help with that?
However, I did try to do the following:
RadPanelBarGroupElement1.GetCaptionElement().Padding.Top = 10;
RadPanelBarGroupElement1.GetCaptionElement().Padding.Bottom = 10;
RadPanelBarGroupElement1.GetCaptionElement().Font.SizeInPoints = 14;
The above three lines gave me errors:Error 1 Cannot modify the return value of 'Telerik.WinControls.RadElement.Padding' because it is not a variable
Error 2 Cannot modify the return value of 'Telerik.WinControls.RadElement.Padding' because it is not a variable
Error 3 Property or indexer 'System.Drawing.Font.SizeInPoints' cannot be assigned to -- it is read only
Please help..
0
Hello Sofia,
To set the Padding and the Font size, please refer to the code snippet below:
If you have additional questions, do not hesitate to contact us.
Best wishes,
Nikolay
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
To set the Padding and the Font size, please refer to the code snippet below:
radPanelBarGroupElement1.GetCaptionElement().Padding = new Padding(0, 10, 0, 10); |
radPanelBarGroupElement1.GetCaptionElement().Font = new Font(radPanelBarGroupElement1.GetCaptionElement().Font.FontFamily, 14); |
If you have additional questions, do not hesitate to contact us.
Best wishes,
Nikolay
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Amika Rai
Top achievements
Rank 1
answered on 04 Apr 2014, 01:15 PM
I am trying to update my application with Rad Q1 2014, please suggest replacement of
RadPanelBarVisualElement visualElement = radPanelBarGroupElement.GetCaptionElement();
I am using RadPageView in place of RadPanelBar
RadPanelBarVisualElement visualElement = radPanelBarGroupElement.GetCaptionElement();
I am using RadPageView in place of RadPanelBar
0
Hello Amika,
RadPanelBar is no longer part of the suite. It was replaced by RadPageView. Please refer to the following article for upgrading options: http://www.telerik.com/help/winforms/pageview-upgrading-to-radpageview.html.
If you still have any questions, do not hesitate to contact us.
Regards,
Stefan
Telerik
RadPanelBar is no longer part of the suite. It was replaced by RadPageView. Please refer to the following article for upgrading options: http://www.telerik.com/help/winforms/pageview-upgrading-to-radpageview.html.
If you still have any questions, do not hesitate to contact us.
Regards,
Stefan
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.