Hi!
I'm working with ASP.Net and I generate the data with a method, but when i call it is not being displayed in my grid. I tried it with an ajax call and it works, but I don't want to do it in that way..
Here is the json:
{"d":[{"f280_id":"01","f280_descripcion":"SUROCCIDENTE CALI"},{"f280_id":"02","f280_descripcion":"NORTE"},{"f280_id":"03","f280_descripcion":"CENTRO"},{"f280_id":"04","f280_descripcion":"BARRANQUILLA"},{"f280_id":"05","f280_descripcion":"PEREIRA"},{"f280_id":"06","f280_descripcion":"PASTO"},{"f280_id":"50","f280_descripcion":"prueba"},{"f280_id":"99","f280_descripcion":"regional 1"}]}
And the kendo ui code:
$(document).ready(function () {
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "About.aspx/prueba2",
type: 'get',
dataType: "json",
contentType: "application/json; charset=utf-8"
}
}
});
$("#grid").kendoGrid({
dataSource: dataSource,
height: 360,
pageable: true,
autoBind: true
});
});
When the page is loading it seams as if where loading the data, but doesn't show anything.
Any suggestion?
Thanks