RadLabel formatting

2 posts, 0 answers
  1. Kevin Meyer
    Kevin Meyer avatar
    36 posts
    Member since:
    Dec 2007

    Posted 14 May 2008 Link to this post

    I'm looking for a way to alternate formatting within a RadLabel.  Something similar to "Found <b>8 results</b> for 'Bob'".

    I saw another post that suggested custom drawing in OnPaint, but I don't want to have to calculate wrapping, etc. myself.
  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 15 May 2008 Link to this post

    Hello Kevin,

    Thank you for the question.

    Currently, RadLabel does not support this functionality. However, there are two approaches you can use to get similar results:
    1. Use several RadLabels with different font styles.
    2. Add several TextPrimitives in a StripLayoutPanel to your RadLabel. Then, you can set different Text and style properties for each of the TextPrimitives. I have demonstrated this in the sample project attached.

    If you have additional questions, do not hesitate to contact me.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top