Search code examples
jqueryjqgridjqgrid-php

How to remove the shadow after delete the row in jqgrid?


How to remove the shadow after deleting a row,

I have referred the code from this link.

After deleting the row and receiving a confirmation prompt, I reload the full div, the only problem is the shadow(white color blur background color).

I have used the code codes to remove the shadow. Its working initially, but when I tried to delete another row its not showing the delete confirmation prompt.

$(".ui-widget-overlay").hide();
$(".ui-widget-overlay").remove();
$(".ui-widget-overlay").css("opacity","0.0");

see below image enter image description here


Solution

  • You use very old demo which uses $("#delmod" + grid[0].id).hide();. Replacing the call of .hide() to the call of $.jgrid.hideModal will solves the problem (see the old demo). See the answer, this one or the answer