Format items in the combo box

2 posts, 0 answers
  1. Cesar San Jose
    Cesar San Jose avatar
    4 posts
    Member since:
    Nov 2008

    Posted 22 Feb 2011 Link to this post

    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.
  2. George
    Admin
    George avatar
    1332 posts

    Posted 25 Feb 2011 Link to this post

    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!
  3. DevCraft banner
Back to Top