This is a migrated thread and some comments may be shown as answers.

Grid and globalization

3 Answers 147 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ana Clara
Top achievements
Rank 1
Ana Clara asked on 05 Jul 2014, 12:03 PM
Hi
How can I apply globalization to a grid? I have a column datetime but it doesn't work when i showdata.
Just works when I "edit" the row, but when i try to "update" i get a validation error ("this is not a valid date")

Thanks!

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 09 Jul 2014, 06:41 AM
Hello,

I recommend reviewing the globalization help article. 

Regards,
Atanas Korchev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Ana Clara
Top achievements
Rank 1
answered on 11 Jul 2014, 01:46 PM
Thank you for your answer, but i'm still have problems..
This is my code...
<script src="/Generic/Scripts/SportsManager/kendo/culture/kendo.culture.en-GB.min.js"></script>
<script>
kendo.culture("en-GB");
</script>

then in the kendo grid...
columns.Bound(c => c.startDate).Width(200).Title("Start Date")

This is i see in the html: "Sun Jul 20 2014 02:00:00 GMT-0300 (Argentina Standard Time)"

And In the editor template:
@(Html.Kendo().DateTimePickerFor(m => m))

This is an inline grid...When i click "update" i have a validation error "The start date must be a date"

Thanks for you help!













 







0
Ana Clara
Top achievements
Rank 1
answered on 11 Jul 2014, 10:17 PM
I solved the first part adding:

.ClientTemplate("#=kendo.format('{0:G}', endDate)#"); 

to column bound.

The problem i have is the validation when i click Update...

Thanks!






Tags
Grid
Asked by
Ana Clara
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Ana Clara
Top achievements
Rank 1
Share this question
or