Hi Guys
Hope someone can help, i am having the most basic of issues with the kendo grid. I have followed the example for the Kendo MVC grid, i created a UI for MVC Web Application project and to this project added an ado .net Entity Data Model all is well.
Following the general overview i can get this example working fine, however when i try the ajax databinding i simply cant get my grid to return any data
i have added the action result method for the read as so
i have added my grid as so
when i build and run the grid simply never gets populated ? if i break point the Meeting_Read action result it is simply never called ??
I must be missing something really obvious but cant see what
Please help.
Eddie
Hope someone can help, i am having the most basic of issues with the kendo grid. I have followed the example for the Kendo MVC grid, i created a UI for MVC Web Application project and to this project added an ado .net Entity Data Model all is well.
Following the general overview i can get this example working fine, however when i try the ajax databinding i simply cant get my grid to return any data
i have added the action result method for the read as so
public ActionResult Meeting_Read([DataSourceRequest]DataSourceRequest request) { using (var ola = new OnlineActionsEntities()) { IQueryable<Meeting> meetings = ola.Meetings; DataSourceResult result = meetings.ToDataSourceResult(request); return Json(result); } }i have added my grid as so
@(Html.Kendo().Grid<AdventureWorks.Models.Meeting>() .Name("grid") .DataSource(dataSource => dataSource // Configure the grid data source .Ajax() // Specify that ajax binding is used .Read(read => read.Action("Meetings_Read", "Home")) // Set the action method which will return the data in JSON format ) .Columns(columns => { // Create a column bound to the ProductID property columns.Bound(meeting => meeting.ID); // Create a column bound to the ProductName property columns.Bound(meeting => meeting.Title); }) .Pageable() // Enable paging .Sortable() // Enable sorting)I must be missing something really obvious but cant see what
Please help.
Eddie