I have below jqGrid:
<table id="_myGrid" cellpadding="0" cellspacing="0">
</table>
<div id="_myPager" style="text-align: center;">
</div>
Trying to disable the entire jqGrid by performing below is not working:
<script type="text/javascript" src="/Scripts/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/Scripts/jquery.blockUI.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#_myGrid').closest('.ui-jqgrid').blockUI({
message: '<h1>Being processed...</h1>',
css: { border: '3px solid #a00' }
});
});
</script>
The error thrown is: "Object does not support/accept this property or method 'blockUI'"
and the same error is thrown.
Also I have tried:
$('#_myGrid').blockUI({ ...
What am I doing wrong?