Localization incomplete on Grid

Hello,

I have localization set for 'es'. I've noticed that when using ValidationRules on Grid component, "this field is requiered message" is not translated.


Is there any way to override this beviour?

Thanks,

erick

3 Replies 1 reply marked as answer

RS Renjith Singh Rajendran Syncfusion Team July 28, 2020 11:29 AM UTC

Hi Erick, 

Greetings from Syncfusion support. 

We suggest you to set your own customized validation messages based on your language as like the below code. You can set customized language error messages by using the Messages property of ValidationRules

Please refer and use as like the code below, 

 
<GridColumn Field=@nameof(Order.CustomerID) ValidationRules="@(new ValidationRules{ Required=trueMessages=message })"  Width="150"> 
</GridColumn> 

@code{    IDictionary<stringobjectmessage = new Dictionary<stringobject>(){{ "required""Use you custom language message here" } };    ...}

Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran 


Marked as answer

ER Erick July 31, 2020 01:27 AM UTC

Thank you very much. I just tested the solution and works great.

Erick


RS Renjith Singh Rajendran Syncfusion Team July 31, 2020 05:50 AM UTC

Hi Erick, 

We are glad to hear that the provided suggestion helped you in achieving your requirement. 

Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran 


Loader.
Up arrow icon