I have a Kendo interface grid filled with information from a remote source, and I want to force the information displayed after the Kendo user interface window on my website is closed.
I tried this:
var grid = $("#usuariosGrid").data("kendoGrid"); grid.refresh();
But that didn't work, here's how I create the Kendo interface grid:
var ds = new kendo.data.DataSource({ transport: { read: { url: root_url + "/usuario/index", dataType: "json" } }, schema: { data: "Response", total: "Count" }, serverPaging: false, pageSize: 2 }); $("#usuariosGrid").kendoGrid({ pageable: { refresh: true }, columns: [ { field: "UsuarioId", title: "ID", width: "100px" }, { field: "Nombre", title: "Nombre", width: "100px" }, { field: "ApellidoP", title: "Apellido Paterno", width: "100px" }, { field: "ApellidoM", title: "Apellido Materno", width: "100px" }, { command: [{ text: "Editar", click: editFunction }, { text: "Eliminar", click: deleteFunction }], title: " ", width: "200px" } ], dataSource: ds });
I looked through the documentation but did not find a method for this.
On the other hand, I was wondering how to display the loading animation in the Kendo UI grid, while the data is being loaded into it, it is displayed after it is loaded, and I look at the grid pages, but when there is no data, it looks minimized, and I would like to display loading animation so that it looks filled during the loading of information.