Forum
18:04
10/02/2014
I have a grid in a jquery ui-dialog modal window. When I edit a row in the edit form, add a custom button that calls another jquery ui-dialog modal window with another grid. The problem is that the new window is back of form editing window . I have tried using the zIndex option, but I have not had a satisfactory result.
Apparently there is an incompatibility between jquery ui modal dialog and jqModal.
Waiting for your comments.
Thanks.
15:53
06/09/2009
Hi,
I actually had the same issue and made me a little 'hack' to make it work for me so maybe it'll help you as well.
in the add options / edit options of your navGrid options, add the following:
$('#editmod'+$('#myGrid').css('z-index', 95);
$('.ui-widget-overlay').removeAttr('style').addClass('ui-front').css('z-index', 90);
$('#modalDialog').parent().css('z-index', 120);
},
'onClose' : function(formId) {
$('#modalDialog').parent().css('z-index', '');
if($('#modalDialog').dialog('isOpen')) {
$('#modalDialog').dialog('close');
}
}
Ofcourse change '#modalDialog' into your dialog selector and '#myGrid' into your grid selector.
Hope this'll help you for now
Kind regards,
Lotte-Sara Laan
15:57
10/02/2014
lotjuh said:
Hi,
I actually had the same issue and made me a little 'hack' to make it work for me so maybe it'll help you as well.
in the add options / edit options of your navGrid options, add the following:
'afterShowForm': function(formid) {
$('#editmod'+$('#myGrid').css('z-index', 95);
$('.ui-widget-overlay').removeAttr('style').addClass('ui-front').css('z-index', 90);
$('#modalDialog').parent().css('z-index', 120);
},
'onClose' : function(formId) {
$('#modalDialog').parent().css('z-index', '');
if($('#modalDialog').dialog('isOpen')) {
$('#modalDialog').dialog('close');
}
}Ofcourse change '#modalDialog' into your dialog selector and '#myGrid' into your grid selector.
Hope this'll help you for now
Kind regards,
Lotte-Sara Laan
Sara, thank you very much for the workaround, but for my project doesn´t seems to work. I´ve modified the jqgrid component to support jquery ui-modal dialog instead of JQmodal.
Kind regards,
Gonzalo.
Most Users Ever Online: 715
Currently Online:
42 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