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

Edit the date in the table

0 Answers 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dmitriy
Top achievements
Rank 2
Dmitriy asked on 21 Sep 2012, 02:38 PM
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
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());
Tell me where the defeathering? 
Here's an example where I collected my  http://demos.telerik.com/aspnet-mvc/razor/grid/editingajax 

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Dmitriy
Top achievements
Rank 2
Share this question
or