Hi,
I have a problem with a datetime in a grid.
It works like it should if date StartDate doesn't have a DateType. And gets a date and a timepicker in the grid.
If I change this to
[DataType(DataType.Date)]
public
DateTime StartDate {
get
;
set
; }
I will get only the datepicker and not the timepicker.
But if I fill in the date I get "the field startdate must be a date" See attached picture
Maybe this is because of the locatlization? I have no clue at the moment.
To get a localization for all my webpages I have put inside the _Layout.cshtml the following
@{
string culture = System.Globalization.CultureInfo.CurrentCulture.ToString();
}
<
script
src
=
"@Url.Content("
~/Scripts/cultures/kendo.culture." + culture + ".min.js")"></
script
>
<
script
>
kendo.culture("@culture");
</
script
>
</
head
>
<
body
>
I can see this becomes
<
script
src
=
"/Scripts/cultures/kendo.culture.nl-NL.min.js"
></
script
>
<
script
>
kendo.culture("nl-NL");
</
script
>
Thanks for your support
Maurice