Forum
03:33
15/10/2010
Hiya,
I am using the checkOnUpdate:true option and I would like to change the position where the dialog appears. It seems to always appear at the bottom near the save/cancel buttons.
I would like to be able to center it in the middle of the form.
At about line 940 of grid.formedit.js I found this:
if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) {
bS ="<a href='javascript:void(0)' id='sNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bYes+"</a>";
bN ="<a href='javascript:void(0)' id='nNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bNo+"</a>";
bC ="<a href='javascript:void(0)' id='cNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bExit+"</a>";
var ii, zI = p.zIndex || 999; zI ++;
if ($.browser.msie && $.browser.version ==6) {
ii = '<iframe style="display:block;position:absolute;z-index:-1;filter:Alpha(Opacity=\'0\');" src="javascript:false;"></iframe>'
} else { ii="";}
$("<div class='ui-widget-overlay jqgrid-overlay confirm' style='z-index:"+zI+";display:none;'> "+ii+"
</div><div class='confirm ui-widget-content ui-jqconfirm' style='position:relative; top:-200px; left:50px; z-index:"+(zI+1)+"'>"+p.saveData+"<br/>
<br/>"+bS+bN+bC+"</div>").insertAfter("#"+frmgr);
$("#sNew","#"+IDs.themodal).click(function(){
I added the text in red and it works...however, that is hard coded and I am not sure what variables etc I should use to figure out the height/width of the current form.
Can someone help me?
Thanks,
Jim
Most Users Ever Online: 715
Currently Online:
61 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66