我正在使用 jqgrid 来显示数据,并且遇到一个问题,这让我认为 jqgrid 的功能是有限的。我希望有人有一个答案,让我能够继续使用 jqgrid,它运行良好并且在整个网站中都在使用。
我希望能够允许出现下拉菜单,并允许在用户单击它时编辑单元格,而且如果用户单击另一列的同一行,也可以调用 js 弹出窗口。目前我们已经进行了设置,以便当用户单击行中的任意位置时,他们都会弹出 js 弹出窗口,但客户端希望能够通过简单的下拉列表编辑一个字段,同时在用户单击时保持调用 js 弹出窗口在那一行的其他单元格上,
谢谢。
I am using jqgrid to display data, and am having an issue which is making me think there is a limit to what jqgrid can do. I am hoping someone has an answer that allows me to keep using jqgrid which works fine and is in use throughout the site.
I would like the ability to allow a dropdown to appear and allow editing of a cell if a user clicks on it, but also invoke a js popup if the user clicks in the same row on another column. Currently we have it set up so that when a user clicks anywhere in the row they get the js popup, but there is one field the client wants to be able to edit with a simple dropdown, while keeping the js popup invoked when the user clicks on other cells in that row
Thank you.
发布评论
评论(2)
尝试查看演示。
具体看行编辑->输入类型(左侧的树)。
这将为您指明单元内编辑的方向。
文档中的此条目将有助于了解如何使用要触发的回调来构造您的列模型。
我认为您提到的 js 弹出逻辑是可行的,但仅需要在编辑期间连接单击事件。
我强烈建议您查看非常有帮助的演示。
祝你好运!
格雷格
Try viewing the demos.
Specifically, look at Row Editing -> Input types (the tree on the left-hand-side).
This will point you in the direction of in-cell editing.
This entry in the documentation will help in understanding how to structure your column model with callbacks to fire.
The js popup logic you mentioned is I think do-able but will require wiring a click event for the duration of editing, only.
I highly recommend going through the demos which are very helpful.
Good luck!
Greg
我认为在 jqGrid 中这是不可能的。
I don't think it is possible in jqGrid.