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_Related Related Topics sp_TopicIcon
Dialog screen location relative to current view?
01/02/2011
23:36
Avatar
Shift4SMS
Las Vegas, NV
Member
Members
Forum Posts: 15
Member Since:
03/12/2010
sp_UserOfflineSmall Offline

Is there any way to specify or adjust the location of the various dialogs (edit, add, & delete) to the current view as opposed to the top of the grid location or absolute window location? If a grid displays with 100 rows and the user scrolls down and (by whatever means) decides to edit, add or delete a row, the user must then scroll up to view the standard dialog associated with the action.

A simple way to describe my issue is via example. Create a grid named #grid with 100 rows. Add the following:

  function bodyOnLoad() {
   $(document).keyup(function(event) {
    if (event.keyCode == "46") {
     if (confirm("Continue with delete dialog?"))
      $("#del_grid").click();
     event.preventDefault();
    }
   });
  }

  if (jQuery.browser.safari) {
   jQuery(window).ready(bodyOnLoad);
  } else {
   jQuery(window).load(bodyOnLoad);
  }

Display the grid, scroll to the bottom and select the last row. Press the delete key. You'll first get a standard browser confirmation dialog centered on the screen. Selecting YES will trigger the jqGrid delete confirmation dialog -- but you'll have to scroll up to view it. Is there any way to correct this behavior by centering the jqDialog to the screen?

I know it's probably easy but my google searches are not productive probably because my terminology is wrong. Thanks in advance.

25/06/2013
07:33
Avatar
simrat
Member
Members
Forum Posts: 5
Member Since:
10/03/2013
sp_UserOfflineSmall Offline

I am facing the same problem of positioning of the update confirmation box/ delete confirmation box/ No row selected error box/ edit modal popup/ add modal popup etc to the center of the screen ..... I have looked a lot but could not find any helpful answers ..... can you please suggest that what can be done to achieve this result.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
24 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