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

Wrap text in radStatusBarPanelElement

4 Answers 103 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
SUNIL
Top achievements
Rank 2
Iron
SUNIL asked on 29 Dec 2010, 06:14 PM
I cannot get the text to wrap in radStatusBarPanelElement placed inside a radstatustrip.
I  am using Q1 2008 SP1.
Can someone please tell me how I can do this? There is nothing in docs also about wrapping text in this element.

Thanks
Sunil

4 Answers, 1 is accepted

Sort by
0
SUNIL
Top achievements
Rank 2
Iron
answered on 29 Dec 2010, 06:30 PM
I have set the maximum size so its less than the width of the radstatusstrip in which it is contained.  Even then text does not wrap if text exceeds the max width of the panel element.

Thanks
Sunil

radStatusBarPanelElement1.MinSize = new Size(0, 0);
raddStatusBarPanelElement1.MaxSize =
new Size(Screen.PrimaryScreen.WorkingArea.Width -20, 100);
0
Peter
Telerik team
answered on 03 Jan 2011, 05:13 PM
Hello Sunil,

You can do this at design time by following these steps:

1. Choose the Edit UI Elements option from the smart tag
2. Select the TextPrimitive from the element tree
3. Set the TextWrap property to true 
4. Set the MaxSize property as well

Please, refer to the attached screenshot which illustrates these steps. I hope this helps.  

Do not hesitate to contact me, if you have further questions.

Greetings,
Peter
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
0
SUNIL
Top achievements
Rank 2
Iron
answered on 03 Jan 2011, 09:56 PM
Hi Peter,

I could not find any property for TextWrap in Q1 2008 SP1 after reading your reply.

Thanks
Sunil
0
Peter
Telerik team
answered on 05 Jan 2011, 02:47 PM
Hi Sunil,

Thank you for writing back.

In this case you should try to manually add a new line symbol to StatusBarPanel text, for example:

radStatusBarPanelElement.Text ="Firstline\nSecondLine";   

I hope this helps.

Regards,
Peter
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Tags
General Discussions
Asked by
SUNIL
Top achievements
Rank 2
Iron
Answers by
SUNIL
Top achievements
Rank 2
Iron
Peter
Telerik team
Share this question
or