Forum


13:02

17/12/2008

As shown on the edit row example demo , when click on the "Edit Selected" button, the edit form appear on the left upper corner of the grid.
Also, I see this from the doc :
"If the top and left off-set properties are not set, the dialog appears at the upper left corner of the grid. Top and left off-sets are in relation to the viewing window, not the grid, so {top:10, left:10} will be indented slightly from the window, and may be nowhere near the grid."
But I got this problem: the edit form displays on the left upper corner of the browser window, and pushes the grid down on the page. I used the default top and left properties.
My html codes:
<table id="editgrid" class="scroll" cellpadding="0" cellspacing="0"></></table>
<div id="pager" class="scroll" style="text-align: center;"></div>
<input type="BUTTON" id="bedata" value="Edit Selected" />
And the code for button on click:
$("#bedata").click(function(){
var gr = jQuery("#editgrid").getGridParam('selrow');
if( gr != null ) jQuery("#editgrid").editGridRow(gr,{ height:280, reloadAfterSubmit:false});
else alert("Please Select Row");
});
Thanks!
Maggie
08:23

Moderators
30/10/2007

Hello,
To be a sure that you load the jqModal.css and jqModal.js and jqDnR.js files properly.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
09:17

17/12/2008

Here are my codes that load the css and js:
<link rel="stylesheet" type="text/css" media="screen" href="jquery/themes/basic/grid.css" />
<link rel="stylesheet" type="text/css" media="screen" href="jquery/themes/jqModal.css" />
<script src="jquery/jquery.js" type="text/javascript"></script>
<script src="jquery/jquery.jqGrid.js" type="text/javascript"></script>
<script src="jquery/js/jqModal.js" type="text/javascript"></script>
<script src="jquery/js/jqDnR.js" type="text/javascript"></script>
To test the pathing, I directly access to the files and can access them:
http://localhost:8080/ReportsP.....qModal.css -2kb
http://localhost:8080/ReportsP.....jqModal.js 3.3kb
http://localhost:8080/ReportsP.....s/jqDnR.js 1.42 kb
It seems that the css and js load ok but there is still the same problem.
Thanks,
Maggie
10:02

17/12/2008

Hello,
I tried to run my page using firefox, the edit form position looks right using firefox, but it still messes up using IE 7. It seems that the css of my page can't be loaded correctly by IE 7, though I can use IE 7 to run the demo page (http://trirand.com/jqgrid/jqgrid.html, live data manipulation -> edit row) and the edit form demo looks good there.
Thanks, Maggie
10:09

Moderators
30/10/2007

Hello,
What is your DOCTYPE definition?
Try with this
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
54 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