Display KendoGrid command selected value in another column in ASP.Net MVC

mahesh213
 
on Sep 15, 2021 01:25 AM
451 Views

Hi,

I have 3 fileds LicenceId, LicenceName and LicenceDate

currently my requirement is that after clicking of edit button display Licecnedate in DateTemplate

can you please help me

{
    Layout = null;
}

@using AspProject.Models;
@using Kendo.Mvc.UI;
@(Html.Kendo().Grid<License>()
      .Name("inlineGrid")
      .Columns(columns =>
      {
          columns.Bound(p => p.LicenseId).Width(20).Hidden().HeaderHtmlAttributes(new { @title = "License" });

          columns.Bound(p => p.LicenceName).Width(20).Width(300);
          columns.Bound(p => p.Licencedate).Width(20).HeaderHtmlAttributes(new { @title = "Vendor" }).Width(300);
          
          columns.Command(p => p.Edit().Text("Edit").HtmlAttributes(new { @title = "Edit" })).Width(220);
      })
      .ToolBar(toolbar => toolbar.Create().Text("Add").HtmlAttributes(new { @title = "Add" }))
      .Editable(editable => editable.Mode(GridEditMode.InLine))
      .Pageable()
      .DataSource(dataSource => dataSource
          .Ajax()
          .Model(model => model.Id(p => p.LicenseId))
              .Read(read => read.Action("Read", "Home").Type(HttpVerbs.Post))
              .Update(update => update.Action("Update", "Home").Type(HttpVerbs.Post))
          )
)

 

Download FREE API for Word, Excel and PDF in ASP.Net: Download