Hi,
I'm having some trouble with the Kendo Grid not being created at all in my webpage.
I followed this tutorial:
http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/grid/server-binding#client-side-events-and-server-binding
and tried all the methods provided.
I've verified that the connection DOES work, and that I can get data from the server.
Here's my Controller:
Here's my View:
I've checked using dev tool inspectors, and the grid doesn't show up at all.
Help Please! Thanks
I'm having some trouble with the Kendo Grid not being created at all in my webpage.
I followed this tutorial:
http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/grid/server-binding#client-side-events-and-server-binding
and tried all the methods provided.
I've verified that the connection DOES work, and that I can get data from the server.
Here's my Controller:
public
ActionResult Output()
{
ViewBag.Message =
"Location Name/Address Here"
;
ViewBag.Link =
"Location"
;
var fcon =
new
FruitEntities().Fruits;
ViewBag.Fruits = fcon;
return
View();
}
@{
ViewBag.Title = "Title";
}
<
h2
>Some grid should be here......</
h2
>
@{Html.Kendo().Grid<
HR360Dashboard.Models.Fruit
>()
.Name("Grid")
.BindTo((IEnumerable<
HR360Dashboard.Models.Fruit
>)ViewBag.Fruits)
.Columns(columns =>
{
columns.Bound(p => p.Fruit_ID);
columns.Bound(p => p.Name);
columns.Bound(p => p.Color);
})
.Pageable();
}
Help Please! Thanks