JqGrid warning message resize

I have a jqGrid table. When I try to edit a certain line without selecting any line, it gives a warning by saying "Please select a line". This popup can be resized and the user can resize it so that it disappears completely. I want this popup not to change. Is there a way to do this?

I found some solution. Don't know if this is the best, but anyway ... In my stylesheet, I added:

#alertmod .jqResize { display: none; }

      

+3


source to share


1 answer


It seems like the resizing of the dialog is hardcoded to true

in grid.formedit.js :

$.jgrid.createModal(alertIDs,
    "<div>"+o.alerttext+
    "</div><span tabindex='0'><span tabindex='-1' id='jqg_alrt'></span></span>",
    {gbox:"#gbox_"+$t.p.id,
     jqModal:true,
     drag:true,
     resize:true,
     caption:o.alertcap,
     top:o.alerttop,
     left:o.alertleft,
     width:o.alertwidth,
     height: o.alertheight,
     closeOnEscape:o.closeOnEscape, 
     zIndex: o.alertzIndex},"","",true);

      



So, judging by this code, your solution is fine to work.

I wonder if resize

ever needed for this modal dialog. I'm inclined to say it should be changed to false

, although more testing will be required to see if there are use cases where this actually makes sense.

+1


source







All Articles