jQgrid Inside jQuery simple modal problems with z-index in edit/delete/add popups

落爺英雄遲暮 提交于 2019-12-11 19:32:52

问题


I put jQGrtid inside jQuery simple model dialog. z-index of simple dialog is 950 so i changed the z-index of jqGrid edit/add/delete pupups greater that that because otherwise they appearing below simple modal.

.jqmID1 { z-index: 1000 !important; }
.jqmID2 { z-index: 1000 !important; }
.jqmID3 { z-index: 1000 !important; }

All was looking good but than if i click/close "edit" and than click/clase "add" and than back to "edit" jQGrid popup again displaying below simple modal.

Than i find out than each time .jqmIDn increasing the n value for each new opening popup so my fix working only for 3 first popups ant than when value getting increased .jqmID4 .jqmID5 .... in is not working

Is there anything i can do to fix that? should i change jQgrid.js somewhere?

UPDATE:

OK, as a solution to that I've found a way how to change z-index in simple modal instead, so i decrease it like that:

$("#myDiv").modal({

   ...
   zIndex: 800,
   ...
});

If someone have any another ideas let me know


回答1:


You can use zIndex property of the Add and Edit Dialog. See this and this answers for details.



来源:https://stackoverflow.com/questions/6273493/jqgrid-inside-jquery-simple-modal-problems-with-z-index-in-edit-delete-add-popup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!