Hi Alexander
i am trying to do the same thing with .net core version and is not working....
Do i have to use template?
this is my Index.cshtml
@(Html.Kendo().Grid<PriceProject.Models.PricesModels.Category>()
.Name("Categories")
.Columns(columns =>
{
columns.Bound(c => c.ID);
columns.Bound(c => c.CategoryName);
columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200);
})
.ToolBar(toolbar =>
{
toolbar.Create().Text("New Category");
toolbar.Save();
})
.Editable(editable => editable.Mode(GridEditMode.PopUp))
.Pageable()
.Navigatable()
.Sortable()
//.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.ServerOperation(true)
.Model(model =>
{
model.Id(p => p.ID);
model.Field(p => p.ID).Editable(false);
model.Field(p => p.CategoryName).Editable(true);
model.Field(p => p.UserID).DefaultValue(1).Editable(false);
})
.Read(read => read.Action("GetCategories", "Categories"))
.Create(create => create.Action("Create", "Categories"))
.Update(update => update.Action("Edit", "Categories"))
.Destroy(update => update.Action("Delete", "Categories"))
.PageSize(10)
).Deferred()
)