Hi Telerik Team.
I copy paste the Telerik code of "ScheldulerCustomEditor".
I have the following error : "The field Start must be a date/ The field End must be a date".
I search in the forum but I don't thing it's a trouble of culture.
In FireBug, the right "cultures/kendo.culture.fr-FR.min.js" is loaded.
And
var culture = Thread.CurrentThread.CurrentUICulture.ToString();
var cultureServer = Thread.CurrentThread.CurrentCulture.ToString();
give both "fr-FR" as a result.
And i followed the Kendo Globalization tutorial
var culture = System.Globalization.CultureInfo.CurrentCulture.ToString();
<script src="@Url.Content("~/Scripts/kendo/2014.1.321/cultures/kendo.culture." + culture + ".min.js")"></script>
I solved this trouble with Data annotation
[DataType(DataType.Time)]
[UIHint("End")]
[Required(ErrorMessage = "Please select a End time")]
[DateGreaterThan(OtherField = "Start")]
public DateTime End
{
get
{
return end;
}
set
{
end = value.ToUniversalTime();
}
}
But i have another error. It's display that "The isAllDay field is required".
I copy paste the Telerik code of "ScheldulerCustomEditor".
I have the following error : "The field Start must be a date/ The field End must be a date".
I search in the forum but I don't thing it's a trouble of culture.
In FireBug, the right "cultures/kendo.culture.fr-FR.min.js" is loaded.
And
var culture = Thread.CurrentThread.CurrentUICulture.ToString();
var cultureServer = Thread.CurrentThread.CurrentCulture.ToString();
give both "fr-FR" as a result.
And i followed the Kendo Globalization tutorial
var culture = System.Globalization.CultureInfo.CurrentCulture.ToString();
<script src="@Url.Content("~/Scripts/kendo/2014.1.321/cultures/kendo.culture." + culture + ".min.js")"></script>
I solved this trouble with Data annotation
[DataType(DataType.Time)]
[UIHint("End")]
[Required(ErrorMessage = "Please select a End time")]
[DateGreaterThan(OtherField = "Start")]
public DateTime End
{
get
{
return end;
}
set
{
end = value.ToUniversalTime();
}
}
But i have another error. It's display that "The isAllDay field is required".