- Home
- Forum
- ASP.NET MVC
- Column value chaning COMMA to DOT
Column value chaning COMMA to DOT
Thanks for contacting Syncfusion support.
We have analyzed your issue. We were able to reproduce the issue when not mentioning localization in the grid. We suspect that you did not set Locale to grid. So, we suggest that you set Locale to the grid. Please refer to the below Code Example and Sample.
Code Example:
|
@(Html.EJ().Grid<SyncfusionMvcApplication23.OrdersView>("FlatGrid") .Datasource((IEnumerable<object>)ViewBag.datasource) .AllowScrolling() .AllowPaging() .Locale("pt-BR") /*Paging Enabled*/ .EditSettings(edit=>{edit.AllowAdding().AllowDeleting().AllowEditing(); }) .ToolbarSettings(toolbar => { toolbar.ShowToolbar().ToolbarItems(items => { items.AddTool(ToolBarItems.Add); items.AddTool(ToolBarItems.Edit); items.AddTool(ToolBarItems.Delete); items.AddTool(ToolBarItems.Update); items.AddTool(ToolBarItems.Cancel); }); }) .Columns(col => { col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).TextAlign(TextAlign.Right).Width(75).Add(); col.Field("CustomerID").HeaderText("Customer ID").Width(80).Add(); col.Field("EmployeeID").HeaderText("Employee ID").TextAlign(TextAlign.Right).Width(75).Add(); //col.Field("Freight").HeaderText("Freight").TextAlign(TextAlign.Right).Width(75).Format("{0:C}").Add(); col.Field("Freight").HeaderText("Freight").Format("{0:n}").EditType(EditingType.Numeric).Width(100).NumericEditOptions(new Syncfusion.JavaScript.Models.EditorProperties() { DecimalPlaces = 2, MaxValue = 99999999.99, Locale = "pt-BR", MinValue = 0 }).Add(); |
Sample: http://www.syncfusion.com/downloads/support/forum/121402/ze/SyncfusionMvcApplication23-1710670067
After setting Locale to the Grid, if you still face any issue, please share the following information to find out the cause of the issue and provide an appropriate solution.
1. Are you using any Adaptors?
2. Any script throws in console?
3. Please tell me the value changing comma to dot while editing or after updating?
4. If possible, please share your issue reproducible sample or change the given sample to issue reproducible.
Regards,
Jayaprakash K.
Hi Carlos,
Please follow the incident that has been created under your account to track the status of this requirement. Please log on to our support website to check further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
Regards,
Jayaprakash K.
- 3 Replies
- 2 Participants
-
CM Carlos Mattos
- Dec 10, 2015 11:40 AM UTC
- Dec 14, 2015 10:32 AM UTC