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
Jqgrid in jquery ui dialog (modal) with nested modal dialog
10/02/2014
18:04
Avatar
gm1_marti
Argentina
New Member
Members
Forum Posts: 2
Member Since:
10/02/2014
sp_UserOfflineSmall Offline

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.

03/03/2014
15:53
Avatar
lotjuh
Member
Members
Forum Posts: 28
Member Since:
06/09/2009
sp_UserOfflineSmall Offline

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

05/03/2014
15:57
Avatar
gm1_marti
Argentina
New Member
Members
Forum Posts: 2
Member Since:
10/02/2014
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information