Hello,
I have a problem to work the serverGrouping in my datasource and the kendo grid (download my project).
this is my json result request :
and this my javascript :
but I have an error => SCRIPT5007: Unable to get value of the property 'length': object is null or undefined
what's wrong with my kendo grid or my configuration ?
Thank you
I have a problem to work the serverGrouping in my datasource and the kendo grid (download my project).
this is my json result request :
{"data":[{"toto":2,"name":"la valeur de i0"},{"toto":2,"name":"la valeur de i1"}],"count":1,"groups":[{"field":"toto","value":"2","items":[{"toto":2,"name":"la valeur de i0"},{"toto":2,"name":"la valeur de i1"}],"hasSubgroups":false,"aggragates":{}}]}and this my javascript :
var source = new kendo.data.DataSource({ type: "jsonp", transport: { read: "Home/GetResult" }, schema: { groups: "groups", total: "count", model: { fields: { toto: { type: "number" }, name: { type: "string" } } }, data: "result" }, serverGrouping: true }); $(document).ready(function () {
$("#grid").kendoGrid({ dataSource: source, height: 250, groupable: true, columns: [{ field: "toto", title: "toto", width: 100 }, { field: "name", title: "name", width: 100 } ] }); });but I have an error => SCRIPT5007: Unable to get value of the property 'length': object is null or undefined
what's wrong with my kendo grid or my configuration ?
Thank you