jqGrid单元格编辑需要定位错误消息对话框 [英] jqGrid cell editing need to position the error message dialog

查看:214
本文介绍了jqGrid单元格编辑需要定位错误消息对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jqGrid进行单元格编辑.我已经使用editrules选项设置了colModel属性.一切工作正常,因为如果我编辑一个单元格并尝试保存一个无效值,则网格会显示一个错误对话框,但是我需要知道如何放置出现的错误消息对话框,因为在我的布局中,它最终位于后面一段录像.我不太确定该如何去做,而且似乎没有任何明显的选择.

I'm using jqGrid with cell editing. I have setup the colModel properties using the editrules option. Everything works fine in that if I edit a cell and try to save an invalid value the grid displays an error dialog, but I need to know how to position the error message dialog that comes up because in the case of my layout it ends up behind a video. I'm not quite sure how to hook into this and there don't seem to be any obvious options on how to do it.

在这种情况下,我要操作的对话框是ID为info_dialog的对话框.

In this case the dialog I would be trying to manipulate is the one with ID of info_dialog.

我还在使用cellArraymit的clientArray选项.

Also I'm using the clientArray option for cellsubmit.

推荐答案

info_dialogzIndex参数的默认值为1000.jqGrid的grid.common.js部分中的函数info_dialog将从网格中调用.celledit.js,无需使用第4个参数即可更改该选项.

Default value of zIndex parameter of info_dialog is 1000. The function info_dialog from grid.common.js part of jqGrid will be called from grid.celledit.js without usage a 4-th parameter which can change the option.

因此,我建议您的最佳实用方法是随视频减小divzIndex值,使其小于1000.

So the best pragmatical way which I could recomend you is to decrease zIndex value of your div with the video so that it will be less then 1000.

这篇关于jqGrid单元格编辑需要定位错误消息对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆