I am trying to implement a custom Kendo download that contains only the grid in an ASP.NET MVC 4 project that uses razor for generating the grid and also uses server side code for generating the grid data. I have selected the applicable fields in the custom download page that generates these scripts:

I have included the scripts and css in the header tag of my _layout.cshtml page:

The code that calls the grid is bound to a simple model with two string properties(name, desc) and calls a controller action:
@(Html.Kendo().Grid<GridStandAloneTest.Models.GridModel>()
.Name("Grid")
.Sortable()
.Pageable()
.DataSource(ds => ds.Ajax().Read("GetPeople", "Home")
.Batch(true)
.ServerOperation(false))
.Columns(x =>
{
x.Bound(c => c.Name);
x.Bound(c => c.Salary);
}))
When the page renders the grid is visible, but the controller action never gets called. I also get a "Uncaught TypeError: undefined is not a function" in the console. However, if I click on a column it does call the controller action, but then it returns it to a new tab with the JSON data under the URL.
The controller code looks like :
public ActionResult GetPeople([DataSourceRequest]DataSourceRequest DataSource)
{
var people = new List<GridStandAloneTest.Models.GridModel>()
{
new GridStandAloneTest.Models.GridModel(){Name = "Jon", Salary = "50,000"},
new GridStandAloneTest.Models.GridModel(){Name = "Joe", Salary = "100,000"}
};
DataSourceResult result = people.ToDataSourceResult(DataSource);
return Json(result, JsonRequestBehavior.AllowGet);
}
Batch(true)andServerOperation(false)to see if that does anything? The only other thing I could think of. - Matt Millicanaspnetmvc.min.jsin there. Also, I just noticed jQuery is after Kendo - jQuery needs to come first. - Matt Millican