Hello, I want to paste data into grid, please revise my code. Thanks.
@(Html.Kendo().Grid<ConfigurationModel>()
.Name("grid")
.Events(e => e.Edit("onGridEdit"))
.AutoBind(false)
.Columns(columns =>
{
columns.Bound(c => c.A);
columns.Bound(c => c.B);
columns.Bound(c => c.C);
columns.Command(command => { command.Edit(); command.Destroy(); }).Width(250);
})
.ToolBar(toolbar => { toolbar.Create(); toolbar.Excel(); })
.Editable(editable => editable.Mode(GridEditMode.InLine))
.HtmlAttributes(new { style = "height: 550px;" })
.Sortable()
.Pageable(pageable => pageable
.Refresh(true)
.PageSizes(true)
.ButtonCount(15))
.Excel(excel => excel
.FileName("Export.xlsx")
.Filterable(true)
.ProxyURL(Url.Action("Excel_Export_Save", "Grid"))
)
.DataSource(dataSource => dataSource
.Ajax()
.Events(events => events.Error("grid_error"))
.Model(model =>
{
model.Id(p => p.A);
})
.Create(create => create
.Action("Create", "Configuration"))
.Read(read => read
.Action("Read", "Configuration")
)
.Update(update => update
.Action("Update", "Configuration")
)
.Destroy(destroy => destroy
.Action("Destroy", "Configuration"))
.PageSize(10)
)