is there a way to positioning the dialog message "Please select row" in the corner left top of the selected grid?
I just want the same behavior in alert warning, just like the edit and delete form..
This topic solution dont work for me.. JQGrid position of the AlertMod warning message
i have 3 grids in same page and if you click in one row of last grid, the message of warning appears in top of the page and its not perceptible for the user...
can anyone help me?
thanks in advance
Solution:
var orgViewModal = $.jgrid.viewModal;
$.extend($.jgrid, {
viewModal: function (selector, o) {
if (selector === '#alertmod') {
var $gbox = $(o.gbox), $selector = $(selector);
var of = $gbox.offset(), w = $gbox.width(), h = $gbox.height();
var w1 = $selector.width(), h1 = $selector.height();
$selector.css({
'top': of.top + ((h-h1)/2),
'left': of.left + ((w-w1)/2)
});
}
orgViewModal.call(this, selector, o);
}
});
To other interested persons, this solution works for me. Only changes the position of the alert box and keep everything else equal.