I am using Kendo grid with three columns Name, Date i have Edit button in one of the column,now f i click "edit" button then the respective row should be in Edit mode with KendoDataPicker inside grid in "Date" field. How to acheive this?
@(Html.Kendo().Grid<MyModel.ResultM>()
.Name("ResultsGrid")
.Sortable()
.Events(grid => grid.DataBound("fnShowNoRecordsFoundMsg"))
.AutoBind(true)
.Scrollable(scr => scr.Height("auto"))
.Sortable(sortable => sortable.AllowUnsort(false))
.Columns(columns =>
{
columns.Bound(p => p.Name).Title("Name").Width(27);
columns.Bound(p => p.Date).Title("Date").Width(27).EditorTemplateName((
@Html.Kendo().DatePicker()
.Name("FDPicker")
//.Value()
.HtmlAttributes(new { data_bind = "value:Date" })
.Format("{0:MM/dd/yy}")
.ToClientTemplate()).ToHtmlString());
columns.Command(command => { command.Destroy(); command.Edit(); }).Width(24);
})
.Editable(editable => editable.Mode(GridEditMode.InLine).CreateAt(GridInsertRowPosition.Bottom))
.DataSource(Resultdatasource=> Resultdatasource
.Ajax()
.Sort(sort => sort.Add("Date").Descending())
.Model(model => model.Id(p => p.Name))
.ServerOperation(false)
.Read(read => read.Action("Results_Read", "Home").Data("fnGetParamsObject"))
.Update(update => update.Action("EditingInline_Update", "Home"))
.Destroy(update => update.Action("EditingInline_Destroy", "Home"))
)
)