I've have to use Kendo Grid in several languages but in the same decimal and dates format (fr-FR). I managed to change Kendo language.
I also add the script and add the routine to change kendo culture.
I also add in web.config;
If I put a breakpoint and examine kendo variable, i have kendo.cultures.current = 'fr-FR'. The culture file is correctly included in page sources.
Yet, the display format remains incorrect and when I edit a grid inline, I also have problems with validation.
Am I missing something?
6 Answers, 1 is accepted
Could you paste here your grid configuration? Are you using server or ajax binding? The kendo-ui culture affects only ajax binding. Server-side binding will obey the current .NET culture.
Also what is the format that doesn't work?
Here is a live demo showing how things should work with ajax binding: http://dojo.telerik.com/@korchev/EpoFo
I first wanted to use simple html or razor element and it did'nt work (it still don't).
Finally, to sove this issue I decided to use kendo element to edit grid inline. As kendo was properly configured, its elements fit Culture and UICulture.
Thanks for your help.
Has anyone solved this issue?
I have the following code
and the output surprise-surprise is this
So doesn't the function kendo.culture do anything?
So the output I solved because I copied the code from telerik and the path to the culture was wrong. However it seems that the parsing is still done using the en-US formats.
The parsing should be done for the set culture as well.
This should also affect how the values are sent to the server.
Check how changing the culture in the demo will affect the dates format on submit:
If additional assistance is needed, please provide a runnable example and I will gladly assist.