Hi everyone,
I have a grid with a DateTime inside, I want to modify it with inCell editing.
This is my grid definition:
When the grid show data correctly formatted with "Short date format" (look image attached: View.png),
but when i modify the date the grid modify the format (look image attached: Modify.png).
How can I have the same format for view and editing data?
I have a grid with a DateTime inside, I want to modify it with inCell editing.
This is my grid definition:
@(Html.Kendo().Grid(Model.row)
.Name(
"grid"
)
.Columns(columns =>
{
columns.Bound(l => l.LRId).Hidden();
columns.Bound(l => l.StartDate).Format(
"{0:d}"
);
columns.Bound(l => l.Amount);
columns.Command(command => command.Custom(
"logicalDelete"
));
//.Click("udmAltDelete"));
})
.ToolBar(toolbar => toolbar.Create())
.Editable(ed => ed.Mode(GridEditMode.InCell))
.DataSource(ds => ds
.Ajax()
.Batch(
true
)
.ServerOperation(
false
)
.Model(model =>
{
model.Id(l => l.LRId);
})
)
)
When the grid show data correctly formatted with "Short date format" (look image attached: View.png),
but when i modify the date the grid modify the format (look image attached: Modify.png).
How can I have the same format for view and editing data?