Forum
23:36
03/12/2010
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.
07:33
10/03/2013
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.
Most Users Ever Online: 715
Currently Online:
34 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