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

formatting text (digits) in RADLabel

1 Answer 136 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 06 Aug 2008, 10:13 PM
How can i format text (digits) in a RADLabel to be shown in a currency format?
Example: 7,97962 -> 7,97 €

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 08 Aug 2008, 01:47 PM
Hello Michael,

RadLabel does not have such feature to format the displayed value of its Text property. I would suggest to you to assign already formatted value to the Text property. In your case you could do it like this:

    float num = 7.97962f;  
    radLabel1.Text = String.Format("{0:#.##}", num);  
 

If you have any other questions, please don't hesitate to write us again.

Sincerely yours,
Georgi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or