I'm testing out some conversion of MVC grid to Kendo grid, and i'm running into several issues with template columns. Am I doing something wrong here?
In some scenarios, I get "undefined" showing in the column, others I'm getting a javascript error "cannot call kendoSortable
on undefined". I assume they're both the same issue related to the rendering of the column.
Thanks!
Jason
In some scenarios, I get "undefined" showing in the column, others I'm getting a javascript error "cannot call kendoSortable
on undefined". I assume they're both the same issue related to the rendering of the column.
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Template(o => Html.ActionLink(o.ProductID.ToString(), "Index", "Home"));
columns.Bound(p => p.ProductName);
columns.Bound(p => p.UnitPrice);
columns.Bound(p => p.UnitsInStock);
})
.Groupable()
.Pageable()
.Sortable()
.Scrollable()
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Products_Read", "Grid"))
)
)
Thanks!
Jason
.Name("Grid")
.Columns(columns =>
{
columns.Template(o => Html.ActionLink(o.ProductID.ToString(), "Index", "Home"));
columns.Bound(p => p.ProductName);
columns.Bound(p => p.UnitPrice);
columns.Bound(p => p.UnitsInStock);
})
.Groupable()
.Pageable()
.Sortable()
.Scrollable()
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Products_Read", "Grid"))
)
)