I would like to put the main Grid setup in a central location to be reused throughout the application.
What is the best way to do it?
eg something like:
What is the best way to do it?
eg something like:
@{
var settings = new MySettings(); //containing .Pageable() .Sortable() etc
settings .Name("KendoGrid")
settings .Columns(columns =>
{
columns.Bound(p => p.Description);
})
.Editable(editable => editable.Mode(GridEditMode.InLine))
.ToolBar(commands => commands.Create())
)
}
@Html.Kendo().Grid(settings).BindTo(Model).Render();