My grid shows as empty with the following code.
<!-- jQuery JavaScript -->
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<h2>Country Grid</h2>
@(Html.Kendo().Grid<MACore.Models.Configuration.Geographic.Location.Country>()
.Name("gridname")
.Columns(columns => {
columns.Bound(p => p.CountryID);
columns.Bound(p => p.Description);
columns.Bound(p => p.LongDescription);
})
.Pageable()
.Sortable()
.Scrollable()
.HtmlAttributes(new { style = "height:550px;" })
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Countries_Read", "Country"))
.PageSize(20)
)
)
The "Countries_Read" does supply a list of Countries when used with other code....any suggestions?