This is a migrated thread and some comments may be shown as answers.

[Solved] Clicking out of dates show 12/31/1969

1 Answer 20 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrew
Top achievements
Rank 1
Andrew asked on 25 May 2012, 05:13 PM
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() 
            ;

}

1 Answer, 1 is accepted

Sort by
0
Andrew
Top achievements
Rank 1
answered on 31 May 2012, 04:50 PM
Can someone from Telerik look at this post?
Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
Andrew
Top achievements
Rank 1
Share this question
or