Forum


11:11

05/06/2009

I use the add and edit forms to amend data, and they work fine, but the position of the modal window seems to be displaying from the top of the container div which I have the grid inside of, instead of the top of the entire page. This causes the modal to not be seen as it is off of the screen. In firebug, if i hover over the html of the modal, it shows an outline in the correct position, but the browser itself does not show the modal in that same position. This is happening in both IE and FF so it does not appear to be browser specific.
Is there a way to alter the css to make sure the modal is displayed the correct distance from the top of the page, ignoring any container/parent divs?
Or does anyone have any other solution that may help me with this?
Thanks,
Evan
02:39

Moderators
30/10/2007

Hello,
It is all connected with the problems in IE. In 3.5 there is a new option whare you can overwrite this behaviour.
In add and edit parameters set jqModal:false - this will couse the grid to use its own modal, which will do the job in your case. The disadvantage is that only the grid is in overlay and not a entry page.
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.
13:08

05/06/2009

This is happening in FF and IE. Upon further investigation, it looks like the modal is positioning itself a certain distance from the top of the page when the page loads. My grid is off the bottom of the viewable window, and when I scroll down, it then positions itself the same distance from the top of the window althouth the page has moved (scrolled). This in turn positions the modal far below the grid as the grid has changed position.
Is there a way using beforShowForm or another similar event to reposition the modal to re-align with the grid even though the page has been scrolled down?
Thanks,
Evan
11:10

Moderators
30/10/2007

Hello,
Sorry, but my answer is no. It is a way that jqModal works (which is used in jqGrid). Did you have try my suggestion in previous post?
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:
35 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