This is a migrated thread and some comments may be shown as answers.
How do you format currency or decimal values in the grid when in edit mode?
2 Answers 36 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Barry
Top achievements
Rank 1
Barry asked on 25 Apr 2011, 02:22 AM

Hi,

I have this code

c.Bound(m => m.CarbonDioxide).Title(

 

"CO2").Width(55).Format("{0:0.0000}");

 

 

In display mode, I get 4 decimal values but in edit mode I only get 2 decimal values.

I am using version 2010.3.1318. I am expecting that it also should be 4 decimal values. Please advice.

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 25 Apr 2011, 07:29 AM
Hello Barry,

 The display format is currently not propagated as edit format. To customize the edit format you should create  an editor template (or customize the existing one if there is already) for your property and set the format there. 

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Barry
Top achievements
Rank 1
answered on 25 Apr 2011, 10:29 AM
Thanks for the response. Issue has been resolved. I just used an editor template and you have adviced.
Tags
Grid
Asked by
Barry
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Barry
Top achievements
Rank 1
Share this question
or