This question is locked. New answers and comments are not allowed.
Try using the link below and edit Unit price if Selected culture is polish or any other language that uses comma as decimal separator
http://demos.telerik.com/aspnet-mvc/razor/grid/localization?culture=pl-PL
Let's take first row with value of 18,00 zl. When I try to edit it by putting 18,20 I get an error "The value '18,2' is not valid for Unit price." On the other hand I cannot put 18.2.
In my own project I have some values like 16,7 in display mode. Going to editing mode changes commas to dot. So I get 16.7 instead of 16,7. Then in controller I cannot update my model as 16.7 is not valid value. If I put 16,7 by hand it works properly. How can I get comma in edit mode? What's more I had to use ".DisplayFormat().DataFormatString("{0:0.00}")" in Fluent Validation for my ViewModel to get commas in display mode it the same as "Format("{0:0.00}");" but in my opinion it should take come from type.
http://demos.telerik.com/aspnet-mvc/razor/grid/localization?culture=pl-PL
Let's take first row with value of 18,00 zl. When I try to edit it by putting 18,20 I get an error "The value '18,2' is not valid for Unit price." On the other hand I cannot put 18.2.
In my own project I have some values like 16,7 in display mode. Going to editing mode changes commas to dot. So I get 16.7 instead of 16,7. Then in controller I cannot update my model as 16.7 is not valid value. If I put 16,7 by hand it works properly. How can I get comma in edit mode? What's more I had to use ".DisplayFormat().DataFormatString("{0:0.00}")" in Fluent Validation for my ViewModel to get commas in display mode it the same as "Format("{0:0.00}");" but in my opinion it should take come from type.