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

RadLabel formatting

1 Answer 40 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kevin Meyer
Top achievements
Rank 1
Kevin Meyer asked on 14 May 2008, 03:18 PM
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.

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 15 May 2008, 03:57 PM
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,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Kevin Meyer
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or