Hi There,
I'm following an example that works perfect when I want to update the dataSource with a DataManager. The only issue is that I want to trigger the loading status of the ejGrid in the meantime that we are waiting for the answer.
example
Javacript:
var vehicleId = event.data.VehicleCode;
var auditTable = $("#<%= gvVehicleAudit.ClientID%>").ejGrid("instance");
var query = new ej.Query();
query.addParams("vehicleId", vehicleId);
var dataManager = ej.DataManager({ url: "VehicleBenefitsNew_N.aspx/vehicleAudit", crossDomain: true, adaptor: new ej.WebMethodAdaptor() });
var promise = dataManager.executeQuery(query);
// trigger loading on ejGrid
promise.done(function (e) {
auditTable.dataSource(e.result);
});
Many thanks in advance!
Kind Regards.
Nestor Ochoa