Hi,
I have problem with kendo date validation in kendo grid.
I have EditorTemplate in column in kendoGrid:
EditorTemplate Date:
Culture is SK-sk (slovakia). DateFormat - dd.MM.yyyy
When I change a date in grid I get validation error message: The field DatumVznikuKontraktu must be a date.
Can you help me ?
Thx
I have problem with kendo date validation in kendo grid.
I have EditorTemplate in column in kendoGrid:
columns.Bound(p => p.DatumVznikuKontraktu).EditorTemplateName(
"Date"
).ClientTemplate(
"#= kendo.toString(DatumVznikuKontraktu, 'd') #"
+<br>
"<input type='hidden' name='ZamKontrakts[#= index(data)#].DatumVznikuKontraktu' value='#= nullTest(DatumVznikuKontraktu) #' />"
).HeaderHtmlAttributes(
new
{ style =
"white-space:pre-wrap; vertical-align:middle"
});
EditorTemplate Date:
<%@ Control Language=
"C#"
Inherits=
"System.Web.Mvc.ViewUserControl<DateTime?>"
%>
<%: Html.Kendo().DatePickerFor(m => m)
.Format(LanguageResources.Resource.DateFormat)
.Culture(System.Threading.Thread.CurrentThread.CurrentCulture.ToString())
%>
Culture is SK-sk (slovakia). DateFormat - dd.MM.yyyy
When I change a date in grid I get validation error message: The field DatumVznikuKontraktu must be a date.
Can you help me ?
Thx