Using ASP.NET Core 3.1 Razor Pages
Page Model:
public IList<Label> Label { get;set; }
public async Task OnGetAsync()
{
Label = await _context.Labels
.ToListAsync();
}
Page: This renders no output at all on the Razor page even though debugging shows records in Model.Label.
I've also noticed that the standard table bound to the same data will work until this code is added to the page, it then also renders nothing. Other controls work fine.
@(
Html.Kendo().Grid(Model.Label)
.Name("label-grid")
.Columns(columns =>
{
columns.Bound(c => c.ProductId).Title("Item");
columns.Bound(c => c.Template);
columns.Bound(c => c.Family);
columns.Bound(c => c.ProductLine);
columns.Bound(c => c.EdgeDetail);
columns.Bound(c => c.GridSize);
columns.Bound(c => c.Size);
})
)