I am having some issues trying to get a grid binding to a dataset of about 10,000 records.
Within my layout I have my scripts set as
My grid set as
My controller
Now when I try load the page I get a 500 error telling me that the json amount is to large.
If I switch the order the 2 kendo scripts are loaded to be
The grid loads but there is a js error "Uncaught TypeError: Cannot read property 'jQuery' of undefined " and I am unable to filter or sort.
Anyone else ran into this problem before?
Within my layout I have my scripts set as
<link rel="stylesheet" href="https://da7xgjtj801h2.cloudfront.net/2013.1.514//styles/kendo.common.min.css"> <link rel="stylesheet" href="https://da7xgjtj801h2.cloudfront.net/2013.1.514/styles/kendo.default.min.css"> @Styles.Render("~/Content/all") <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> @Scripts.Render("~/bundles/all") <script src="https://da7xgjtj801h2.cloudfront.net/2013.1.514/js/kendo.web.min.js"></script> <script src="https://da7xgjtj801h2.cloudfront.net/2013.1.514/js/kendo.aspnetmvc.min.js"></script>My grid set as
@(Html.Kendo().Grid<ZZ.Model.ProductModel>() .Name("products-grid") .Columns(columns => { columns.Bound(o => o.id).ClientTemplate("<input type='checkbox' data-id='#: id #'/>").Title(" ").Sortable(false).Width(22).Filterable(false); columns.Bound(o => o.name).Title("Name").Width(140); columns.Bound(o => o.handle).Title("Handle").Width(140); columns.Bound(o => o.type).Title("Type").Width(140); columns.Bound(o => o.sku).Title("SKU").Width(80); }) .Scrollable() .Resizable(r=>r.Columns(true)) .Sortable() .Filterable() .Pageable(p=>p.Messages(m=>m.Display("{0}-{1} of {2} products"))) .HtmlAttributes(new { style = "height: 600px" }) .DataSource(dataSource => dataSource .Ajax() .PageSize(250) .Read(read => read.Action("GetProducts", "Products")) ) // .Events(events => events.Change("select")) )public JsonResult GetProducts([DataSourceRequest] DataSourceRequest request) { var businessId = BusinessInfo.Id; var result = _repository.GetProductsInDatabase(businessId).OrderBy(o=>o.handle).ToDataSourceResult(request); return Json(result, JsonRequestBehavior.AllowGet); }If I switch the order the 2 kendo scripts are loaded to be
<script src="https://da7xgjtj801h2.cloudfront.net/2013.1.514/js/kendo.aspnetmvc.min.js"></script>
<script src="https://da7xgjtj801h2.cloudfront.net/2013.1.514/js/kendo.web.min.js"></script>
Anyone else ran into this problem before?