Incorrect Z-Order - the jqgrid Add/Edit screen shows up behind if you the grid is on a jquery ui dialog

前端 未结 2 1529
隐瞒了意图╮
隐瞒了意图╮ 2020-12-20 10:27

i have a jquery ui dialog and i have a jqgrid on that dialog. When i click Add or Edit, the jqgrid popup (to have a popup on a popup), it shows up to enter in the data BUT

相关标签:
2条回答
  • 2020-12-20 11:04

    Z-index fixes the problem (as your comment mentions):

    http://docs.jquery.com/UI/Dialog#option-zIndex

    0 讨论(0)
  • 2020-12-20 11:22

    To solve your problem you can use zIndex option of "Add", "Edit" or "Del" which is not documented in the jqGrid documentation. Default value of zIndex is 950 For example you can use

    $("#list").jqGrid('navGrid','#pager',{/*navGrid options*/},
                      {zIndex:1234}, // Edit options
                      {zIndex:1234}, // Add options
                      {zIndex:1234}, // Del options
                      {multipleSearch:true,overlay:false});
    

    (default value of zIndex parameter of jQuery UI Dialog is 1000 so you should choose the higher value)

    0 讨论(0)
提交回复
热议问题