Hello, after trying to follow the examples for adding a toolbar in the grid and AS soon as I add in the toolbar I get the error in the title.
here's the aspx code:
I have tried using the .Render() as well at the end of the control but no success. Any help would be greatly appreciated.
here's the aspx code:
<%: Html.Kendo().Grid<
TSAEMSV3.Models.AirportTrainingViewManagementModel
>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(x => x.Record).Width(65);
columns.Bound(x => x.Code).Width(65);
columns.Bound(x => x.PeopleTrained).Width(100);
columns.Bound(x => x.TrainingTypes).Width(100);
columns.Bound(x => x.Trainer).Width(100);
columns.Bound(x => x.TrainingDate).Format("{0:MM/dd/yyyy}").Width(100);
}
)
.ToolBar(toolbar =>
{
toolbar.Template(() =>
{ %>
<
div
class
=
"toolbar"
>
<
label
class
=
"category-label"
for
=
"category"
>Show products by category:</
label
>
</
div
>
<%});
})
.Pageable()
.Sortable()
.Scrollable()
.HtmlAttributes(new { style = "height:500px;" })
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(50)
.Read(read => read.Action("RetrieveTrainingManagementGrid", "AirportTraining"))
);
%>