Hi,
i'm trying to do some inPlace editing in Kendo Grid.
When i click on a DateTime Column, i'm expecting a DateTimePicker to appear, but i only shows the Error: "XXX is not valid date" ==> have a look at the attached image.
My ViewModel looks like this:
I'm using Kendo 2013.1.514
Any help is appreciated.
i'm trying to do some inPlace editing in Kendo Grid.
When i click on a DateTime Column, i'm expecting a DateTimePicker to appear, but i only shows the Error: "XXX is not valid date" ==> have a look at the attached image.
@(Html.Kendo().Grid<Roche.LabData.Web.Models.MappingRuleViewModel>() .Name("Grid") .Columns(columns => { columns.Bound(m => m.SalesOrganization); columns.Bound(m => m.CustomerNumber); columns.Bound(m => m.DeviceName); columns.Bound(m => m.EntityName); columns.Bound(m => m.OldValue); columns.Bound(m => m.NewValue); columns.Bound(m => m.StartDate).Format("{0:d}"); columns.Bound(m => m.EndDate).Format("{0:d}"); columns.Command(command => command.Custom("Deactivate").Click("clickDeactivate")); }) .Editable(editable => editable.Mode(GridEditMode.InCell)) .Pageable() .Sortable() .DataSource(dataSource => dataSource .Ajax() .ServerOperation(false) .Read(read => read.Action("MappingRules_Read", "MappingRules")) .Update(read => read.Action("MappingRules_Update", "MappingRules")) .Events(events => events.Error("error_handler")) .Model(model => { model.Id(m => m.MappingRuleId); model.Field(p => p.SalesOrganization).Editable(false); model.Field(p => p.CustomerNumber).Editable(false); model.Field(p => p.DeviceName).Editable(false); model.Field(p => p.EntityName).Editable(false); model.Field(p => p.OldValue).Editable(false); model.Field(p => p.NewValue).Editable(false); model.Field(p => p.StartDate).Editable(false); // This column should be "InPlace editable" model.Field(p => p.EndDate).Editable(true); }) ) )My ViewModel looks like this:
public class MappingRuleViewModel { public Guid MappingRuleId { get; set; } public string SalesOrganization { get; set; } public string CustomerNumber { get; set; } public string DeviceName { get; set; } public string EntityName { get; set; } public string OldValue { get; set; } public string NewValue { get; set; } public DateTime StartDate { get; set; } public DateTime EndDate { get; set; } public bool IsActive { get; set; } public string CreatedBy { get; set; } public DateTime ModifiedDate { get; set; } }Any help is appreciated.