Th solution can be very close to the old. You can use the following options in the search dialog box:
overlay: 0, drag: false, beforeShowSearch: function ($form) { var $searchDialog = $form.closest(".ui-jqdialog"), $gbox = $(this).closest(".ui-jqgrid"); $searchDialog.insertBefore($gbox); $searchDialog.css({ position: "relative", zIndex: "auto", float: "left" }) $gbox.css({clear:"left"}); }
You can select other options (for example, closeOnEscape: true, closeAfterSearch: true, closeAfterReset: true, searchOnEnter: true, searchOperators: true and others) depending on your preference.
The demo displays a search dialog, for example

If you prefer to use Bootstrap CSS instead of jQuery UI CSS, you need to add a few extra lines:
overlay: 0, drag: false, beforeShowSearch: function ($form) { var $searchDialog = $form.closest(".ui-jqdialog"), $gbox = $(this).closest(".ui-jqgrid"); $searchDialog.insertBefore($gbox); $searchDialog.css({ position: "relative", zIndex: "auto", padding: 0, float: "left" }); $searchDialog.children(".modal-dialog").css({ marginTop: 0, marginBottom: 0 }); $searchDialog.find(".modal-content").css({ boxShadow: "none" }); $gbox.css({clear:"left"}); }
See a demo that displays:

Oleg Apr 01 '16 at 10:23 2016-04-01 10:23
source share