This question is locked. New answers and comments are not allowed.
Hello,
All my datepickers work perfectly, except those in a grid.
In dutch, the date format is dd/mm/yyyy.
So in a normal page the datepicker shows the date as 14/02/2012.
When you change to 16/02/2012, everythong works fine.
In the grid, the date is shown as 31/01/2012.
But when you edit the row in the grid, you can't select 20/01/2012, it says 01/20/2012 does not exist.
My grids all have .Localize("nl-NL") so I don't understand the reason why I changes the format.
any deas?
thanks,
Filip
All my datepickers work perfectly, except those in a grid.
In dutch, the date format is dd/mm/yyyy.
So in a normal page the datepicker shows the date as 14/02/2012.
When you change to 16/02/2012, everythong works fine.
In the grid, the date is shown as 31/01/2012.
But when you edit the row in the grid, you can't select 20/01/2012, it says 01/20/2012 does not exist.
My grids all have .Localize("nl-NL") so I don't understand the reason why I changes the format.
any deas?
thanks,
Filip
5 Answers, 1 is accepted
0
Michiel
Top achievements
Rank 1
answered on 06 Mar 2012, 01:32 PM
I had the same issue, sorry, dont have an answer. You might be able to change the formatting using jquery but theTelerik grid should either let you set the formatter for the editor or just use the one from the grid column itself.
0
Hello Filip,
This can occur if you have set formatting on the column or the model property. If that is the case, you should set the thread Culture and UICulture on the server to localize the Grid and avoid the validation error.
If not, please provide more information about your scenario.
All the best,
Daniel
the Telerik team
This can occur if you have set formatting on the column or the model property. If that is the case, you should set the thread Culture and UICulture on the server to localize the Grid and avoid the validation error.
If not, please provide more information about your scenario.
All the best,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
fil
Top achievements
Rank 1
answered on 09 Mar 2012, 01:04 PM
I have no formating on the column. (no clienttemplate)
The model has the following attribute: [DataType(DataType.Date)]
thanks,
Filip
The model has the following attribute: [DataType(DataType.Date)]
thanks,
Filip
0
Hi again Filip,
Based on the provided description I am still unable to reproduce the problem locally. Could you send a sample project which reproduces the described behaviour so I can check the exact setup?
Regards,
Daniel
the Telerik team
Based on the provided description I am still unable to reproduce the problem locally. Could you send a sample project which reproduces the described behaviour so I can check the exact setup?
Regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Jivan
Top achievements
Rank 1
answered on 11 Apr 2013, 01:34 PM
Hi,
I'm facing similar kind of problem. In issue while I configured the application for us-en then dates are working fine in telerik grid. i.e. I can edit grid row enter valid dates and save that working fine. But when I used 'nl' configuration in which date format is dd-mm-yyyy by default in browser. and when I tried to save date it deals date in format mm-dd-yyyy so which do not save date when date is like 22-1-2013. Please help me how to fix this issue.
I'm facing similar kind of problem. In issue while I configured the application for us-en then dates are working fine in telerik grid. i.e. I can edit grid row enter valid dates and save that working fine. But when I used 'nl' configuration in which date format is dd-mm-yyyy by default in browser. and when I tried to save date it deals date in format mm-dd-yyyy so which do not save date when date is like 22-1-2013. Please help me how to fix this issue.