How do we position a alert message dialog box on the middle of jgGrid?
I am using two jgGrids
on the page and tried with alerttop
, alertleft
as suggested by Oleg
in
jqGrid warning please select row position
But the problem is, the same alert box options are reused for all the grids in the page.
In jqGrid
ids for alert box is static and not grid context based.
(Line no: 8531 in 4.4.0 source file)
var alertIDs = { themodal: 'alertmod', modalhead: 'alerthd', modalcontent: 'alertcnt' }
and the below code is executed for only one grid
*if ($("#" + alertIDs.themodal).html() === null) {
if (!o.alerttop && !o.alertleft) {*
Due to this i cant able to position alert boxes for each grid.