Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
jqModal Position
11/06/2009
11:11
Avatar
ewalsh
Member
Members
Forum Posts: 4
Member Since:
05/06/2009
sp_UserOfflineSmall Offline

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

12/06/2009
02:39
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

15/06/2009
13:08
Avatar
ewalsh
Member
Members
Forum Posts: 4
Member Since:
05/06/2009
sp_UserOfflineSmall Offline

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

17/06/2009
11:10
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information