I have a 3 level hierarchical Kendo grid with command columns that invoke long-running JavaScript Ajax functions that invoke Controller methods which in turn act on database tables. I'm trying to show a wait cursor so the user has a visual cue that the system is busy and is waiting for a response from the server. Kendo grid CSS seems to be overriding my attempt to show and clear the wait cursor. How can I make this work properly?
My Javascript method is shown below:
Thanks!
Rich
My Javascript method is shown below:
function onClickPostBatch(e) { var dataItem = this.dataItem($(e.target).closest("tr")); //document.body.style.cursor = "wait"; $("html").css("cursor", "wait"); $.post('@Url.Action("PostBatch", "Home")', { batchId: dataItem.BatchID }, function (data) { if (data.error) { alert('' + data.message); } else { alert(data.message); location.reload(); } }); //document.body.style.cursor = "default"; $("html").css("cursor", "default"); }
Thanks!
Rich