Visibilty of text in RadStatusStrip Item (RadLabelElement)

7 posts, 0 answers
  1. Hassan
    Hassan avatar
    15 posts
    Member since:
    Jan 2009

    Posted 01 Feb 2009 Link to this post

    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
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 02 Feb 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Hassan
    Hassan avatar
    15 posts
    Member since:
    Jan 2009

    Posted 02 Feb 2009 Link to this post

    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

     

     

  5. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 04 Feb 2009 Link to this post

    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.
  6. Hassan
    Hassan avatar
    15 posts
    Member since:
    Jan 2009

    Posted 04 Feb 2009 Link to this post

    Thanks
    Done
  7. Larry
    Larry avatar
    24 posts
    Member since:
    Mar 2008

    Posted 12 Sep 2013 Link to this post

    I have the exact same problem with your current WinForm version.  Any hopes of ever getting it fixed?
  8. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 16 Sep 2013 Link to this post

    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 >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready