Ok I'm using globalize.js and registering it BEFORE the kendo culture javascript, and using my helper to pick the right culture file.
In my case it is en-GB.
However, if I bind a DateTime column on my model in a KendoUI grid, it fails to display anything at all.
I have tried various ways as shown here.
columns.Bound(o => o.AuthorityDate);
columns.Bound(o => o.AuthorityDate).Format("{0:d}");
columns.Bound(o => o.AuthorityDate).Title("AuthorityDate").Format("{0:dd/MM/yyyy hh:mm:tt}");
If I switch things and register globalize.js AFTER the kendo javascript, it then binds successfully.
So, I understand that registering globalize.js BEFORE should make kendo use globalize as per the help documentation.
So why is this NOT working? I am using MVC5.1 kendo build 2014.1.318
In my case it is en-GB.
However, if I bind a DateTime column on my model in a KendoUI grid, it fails to display anything at all.
I have tried various ways as shown here.
columns.Bound(o => o.AuthorityDate);
columns.Bound(o => o.AuthorityDate).Format("{0:d}");
columns.Bound(o => o.AuthorityDate).Title("AuthorityDate").Format("{0:dd/MM/yyyy hh:mm:tt}");
If I switch things and register globalize.js AFTER the kendo javascript, it then binds successfully.
So, I understand that registering globalize.js BEFORE should make kendo use globalize as per the help documentation.
So why is this NOT working? I am using MVC5.1 kendo build 2014.1.318
<
script
src
=
"@Url.Content("
~/Scripts/globalize/globalize.min.js")"
type
=
"text/javascript"
></
script
>
<
script
src
=
"@Url.Content("
~/Scripts/globalize/cultures/globalize.culture." Core.Helpers.CultureHelper.GetCurrentCulture() + ".js")"
type
=
"text/javascript"
></
script
>
<
script
src
=
"https://da7xgjtj801h2.cloudfront.net/2014.1.318/js/kendo.all.min.js"
></
script
>
<
script
src
=
"https://da7xgjtj801h2.cloudfront.net/2014.1.318/js/kendo.aspnetmvc.min.js"
></
script
>
<
script
src
=
"@Url.Content("
https://da7xgjtj801h2.cloudfront.net/2014.1.318/js/cultures/kendo.culture." + Core.Helpers.CultureHelper.GetCurrentCulture() + ".min.js")"
type
=
"text/javascript"
></
script
>
<
script
src
=
"@Url.Content("
~/Scripts/kendo.modernizr.custom.js")"></
script
>