I am trying to show progress/spinner
when user selects all the check boxes in the Kendo Grid
using kendo.ui.progress($("#grid"), true)
as shown below.
But the spinner/progress is not getting displayed when the select All/ deselect All check box
is clicked. Even the cursor is not getting turned into wait status.
Below is my code:
$(document).ready(function () {
$("#grid").on("click", ".row-checkbox", selectRow);
$('#checkAllBoxes').change(function (ev) {
kendo.ui.progress($("#grid"), true);
$('html').css("cursor", "wait");
var checked = ev.target.checked;
$('.row-checkbox').each(function (idx, item) {
if (checked) {
if (!($(item).closest('tr').is('.k-state-selected'))) {
$(item).click();
}
} else {
if ($(item).closest('tr').is('.k-state-selected')) {
$(item).click();
}
}
});
$('html').css("cursor", "default");
kendo.ui.progress($("#grid"), false);
});
});
Could you help me to figure out what i am doing wrong.