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

Visibilty of text in RadStatusStrip Item (RadLabelElement)

6 Answers 211 Views
StatusStrip
This is a migrated thread and some comments may be shown as answers.
Hassan
Top achievements
Rank 1
Hassan asked on 02 Feb 2009, 05:43 AM
Hi,

I am using RadStatusStrip on a form and it has three RadLabelElement on it, these labels are used to display text and images at run-time. All three have spring property set to true and there are two separators in between them. Now the problem is, when a text is added at run time to a label and this text has a size larger than the current width of the label, the text exceeds from the width of the label and overlaps on the next label area i.e. the exceeded part of text is displayed on the separator and on next label area. I tried to handle it with different values of RadLabelElement property TextWrap but of no use. Also the back color of the RadLabelElement is set to transparent. Can you please give me any solution for that. I need that the exceeded part of the text, whose length is greater than label's width, is not displayed instead only initial part of that text is displayed (as same behavior found in the vs.net's status strip control.

Thanks and regards,

Hassan

6 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 02 Feb 2009, 09:51 AM
Hi Hassan,

To avoid this behavior you must remove LabelElement from the StatusStrip collection, update its Text and put it again in the collection. See the sample code below how to do this in three steps:
 
 
this.radStatusStrip1.Items.Remove(this.radLabelElement1); 
this.radLabelElement1.Text += "some long long text"
this.radStatusStrip1.Items.Insert(0, this.radLabelElement1); 

Hope this helps.

All the best,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Hassan
Top achievements
Rank 1
answered on 02 Feb 2009, 10:51 AM
Hi,
 
I tried this in vb.net by using following three lines but the problem remains the same

radStatusStrip1.Items.Remove(radLabelElement1)

radLabelElement1.Text +=

"some long long text"

 

 

radStatusStrip1.Items.Insert(0, radLabelElement1)

Did you generate the problem, on my side this is not working, please give some other solution or reason for this behavior

thanks

Hassan

 

 

0
Peter
Telerik team
answered on 04 Feb 2009, 01:10 PM
Hello Hassan,

Thank you for getting back to me.

This behavior is by design - usually only one item is with spring turned on, and its size is fixed, however we plan to improve it. I am attaching a sample project that should workaround this issue with additional labels without text (spring on) placed around the labels with text (spring off) (see the screenshot).

Let me know if this helped.

Kind regards,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Hassan
Top achievements
Rank 1
answered on 04 Feb 2009, 03:50 PM
Thanks
Done
0
Larry
Top achievements
Rank 2
answered on 12 Sep 2013, 03:13 PM
I have the exact same problem with your current WinForm version.  Any hopes of ever getting it fixed?
0
Peter
Telerik team
answered on 16 Sep 2013, 04:46 PM
Hi Larry,

Currently, we have no specific time frame set for changing the existing design of the behavior. We may consider changing it if more customers require the same. For the time being, please use the workaround provided in my previous reply.

If you need additional assistance, I will be glad to help.

Regards,
Peter
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
StatusStrip
Asked by
Hassan
Top achievements
Rank 1
Answers by
Peter
Telerik team
Hassan
Top achievements
Rank 1
Larry
Top achievements
Rank 2
Share this question
or