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

Format items in the combo box

1 Answer 81 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Cesar San Jose
Top achievements
Rank 1
Cesar San Jose asked on 22 Feb 2011, 10:27 PM
We bound the RAD combobox to a collection of objects where one of the attributes is a decimal value. We would like to format the decimal value into a percent. So the value is 55.0000 but we want to show it as "55%".

Thanks.

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 25 Feb 2011, 11:13 AM
Hi,

 
I would suggest you use a StringFormat. For more information, you could refer to the following link - http://www.designersilverlight.com/2010/05/28/silverlight-4-binding-and-stringformat-in-xaml/

Also, if this doesn't help, you could always use a value converter.

Regards,
George
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
ComboBox
Asked by
Cesar San Jose
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or