In the example below I set the grid's Locale to "pt-BR" but the DropDown column "ResourceRate" keeps showing the default english message (e. g. Rate is required) whenever I try to save.
@(Html.EJ().Grid<ETCPlanMaoDeObraViewModel>("GridMaoDeObra")
.Datasource(ds => ds.Json((IEnumerable<ETCPlanMaoDeObraViewModel>)Model.MaoDeObra)
.UpdateURL(Url.Action("GridMaoDeObraUpdate", "ETCPlan"))
.InsertURL(Url.Action("GridMaoDeObraInsert", "ETCPlan"))
.RemoveURL(Url.Action("GridMaoDeObraDelete", "ETCPlan"))
.Adaptor(AdaptorType.RemoteSaveAdaptor))
.EditSettings(edit =>
{
edit.AllowAdding()
.AllowDeleting()
.AllowEditing()
.ShowDeleteConfirmDialog(true);
})
.Locale("pt-BR")
.AllowPaging()
.Columns(col =>
{
col.Field("Id").IsPrimaryKey(true).IsIdentity(true).Visible(false).Add();
col.Field("ResourceName").HeaderText(Resource.ETCPlan_SpendPlanTabMaoDeObra_GridHeader_Name).Width(90).EditType(EditingType.Dropdown)
.DataSource(Model.ResourceNames).Add();
col.Field("ResourceRE").Visible(false).Add();
col.Field("WBSCode").Visible(false).Add();
col.Field("ResourceRate").HeaderText(Resource.ETCPlan_SpendPlanTabMaoDeObra_GridHeader_Rate).Width(60).EditType(EditingType.Dropdown)
.DataSource(Model.Rates).ValidationRules(v => v.AddRule("required", true)).Add();
col.Field("JanValue").HeaderText(Resource.ETCPlan_SpendPlanTabMaoDeObra_GridHeader_Jan).Width(50).EditType(EditingType.String).AllowEditing(false).Add();
col.Field("FebValue").HeaderText(Resource.ETCPlan_SpendPlanTabMaoDeObra_GridHeader_Feb).Width(50).EditType(EditingType.String).AllowEditing(false).Add();
col.Field("MarValue").HeaderText(Resource.ETCPlan_SpendPlanTabMaoDeObra_GridHeader_Mar).Width(50).EditType(EditingType.String).AllowEditing(false).Add();
col.Field("AprValue").HeaderText(Resource.ETCPlan_SpendPlanTabMaoDeObra_GridHeader_Apr).Width(50).EditType(EditingType.String).AllowEditing(false).Add();
col.Field("MayValue").HeaderText(Resource.ETCPlan_SpendPlanTabMaoDeObra_GridHeader_May).Width(50).EditType(EditingType.String).AllowEditing(false).Add();
col.Field("JunValue").HeaderText(Resource.ETCPlan_SpendPlanTabMaoDeObra_GridHeader_Jun).Width(50).EditType(EditingType.String).AllowEditing(false).Add();
col.Field("JulValue").HeaderText(Resource.ETCPlan_SpendPlanTabMaoDeObra_GridHeader_Jul).Width(50).EditType(EditingType.String).AllowEditing(false).Add();
col.Field("AugValue").HeaderText(Resource.ETCPlan_SpendPlanTabMaoDeObra_GridHeader_Aug).Width(50).EditType(EditingType.String).AllowEditing(false).Add();
col.Field("SepValue").HeaderText(Resource.ETCPlan_SpendPlanTabMaoDeObra_GridHeader_Sep).Width(50).EditType(EditingType.String).AllowEditing(false).Add();
col.Field("OctValue").HeaderText(Resource.ETCPlan_SpendPlanTabMaoDeObra_GridHeader_Oct).Width(50).EditType(EditingType.String).AllowEditing(false).Add();
col.Field("NovValue").HeaderText(Resource.ETCPlan_SpendPlanTabMaoDeObra_GridHeader_Nov).Width(50).EditType(EditingType.String).AllowEditing(false).Add();
col.Field("DecValue").HeaderText(Resource.ETCPlan_SpendPlanTabMaoDeObra_GridHeader_Dec).Width(50).EditType(EditingType.String).AllowEditing(false).Add();
})
)
Thanks in advance.