This question is locked. New answers and comments are not allowed.
I have reached the point where I can display my data in the grid. But whenever you click out of a date file, the value changes to 12/31/1969. Clicking back in the cell changes the data back to the correct value. I did not use the Date Picker.
Anyone come upon this problem?
In my View:
@{
this.Html.Telerik().Grid<VisitsEditableGridEventTableViewModel>()
.Name("Visits")
.DataKeys(keys => keys
.Add(e => e.eventID )
.RouteKey(value: "eventID")
)
.DataBinding(dataBinding => dataBinding.Ajax()
.Select(actionName: "AjaxSelectVisits", controllerName: "Home")
.Update(actionName: "AjaxSaveVisits", controllerName: "Home")
)
.Columns(columns =>
{
columns.Bound(e => e.startDate).Format("{0:d}");
columns.Bound(e => e.endDate).Format("{0:d}");
columns.Bound(e => e.shipHull);
columns.Bound(e => e.eventTypeName);
columns.Bound(e => e.comments);
} )
.ToolBar(commands =>
{
commands.SubmitChanges();
} )
.Editable(editing => editing.Mode(GridEditMode.InCell) )
.KeyboardNavigation()
.Sortable()
.Filterable()
.Pageable()
.Scrollable()
.Render()
;
}
Anyone come upon this problem?
In my View:
@{
this.Html.Telerik().Grid<VisitsEditableGridEventTableViewModel>()
.Name("Visits")
.DataKeys(keys => keys
.Add(e => e.eventID )
.RouteKey(value: "eventID")
)
.DataBinding(dataBinding => dataBinding.Ajax()
.Select(actionName: "AjaxSelectVisits", controllerName: "Home")
.Update(actionName: "AjaxSaveVisits", controllerName: "Home")
)
.Columns(columns =>
{
columns.Bound(e => e.startDate).Format("{0:d}");
columns.Bound(e => e.endDate).Format("{0:d}");
columns.Bound(e => e.shipHull);
columns.Bound(e => e.eventTypeName);
columns.Bound(e => e.comments);
} )
.ToolBar(commands =>
{
commands.SubmitChanges();
} )
.Editable(editing => editing.Mode(GridEditMode.InCell) )
.KeyboardNavigation()
.Sortable()
.Filterable()
.Pageable()
.Scrollable()
.Render()
;
}