Has difficulty
in the table include editing and adding. But after adding the date of checking the writes that need a date! But the date of a?
Here is the code
Tell me where the defeathering?
Here's an example where I collected my http://demos.telerik.com/aspnet-mvc/razor/grid/editingajax
Html.Telerik().Grid<Predlogenie>()
.Name(
"Orders_<#= ZaprosId #>"
)
.DataKeys(keys =>
{
keys.Add(p => p.PredlogenieId);
})
.Columns(columns =>
{
columns.Bound(o => o.Predlogau).Width(200).Title(
"Предлогаю"
);
columns.Bound(o => o.DateIn).Title(
"Заезд"
).Width(100);
columns.Bound(o => o.DateOut).Title(
"Выезд"
).Width(100);
columns.Bound(o => o.Comment).Title(
"Комментарий"
);
columns.Command(commands =>
{
commands.Edit().ButtonType(GridButtonType.Image);
commands.Delete().ButtonType(GridButtonType.Image);
}).Width(100);
})
.ToolBar(commands => commands.Insert().ButtonType(GridButtonType.Text).ImageHtmlAttributes(
new
{ style =
"margin-left:0"
}))
.DataBinding(dataBinding => dataBinding.Ajax()
.Select(
"_OrdersForEmployeeDetailsAjax"
,
"Home"
,
new
{ id =
"<#= ZaprosId #>"
})
.Insert(
"_InsertAjaxEditing"
,
"Home"
)
.Update(
"_SaveAjaxEditing"
,
"Home"
)
.Delete(
"_DeleteAjaxEditing"
,
"Home"
)
)
.Pageable()
.Editable(editing => editing.Mode(GridEditMode.InForm).InsertRowPosition(GridInsertRowPosition.Top))
.Sortable()
.Filterable()
.ToHtmlString());
Here's an example where I collected my http://demos.telerik.com/aspnet-mvc/razor/grid/editingajax