jqGrid - 更改过滤器/搜索弹出表单 - 在页面上平坦 - 而不是对话框
我正在使用jqgrid。
我真的需要这方面的帮助,并且不知道该怎么做,但我确信这是可能的......任何人都可以给我一个部分答案吗?是从什么开始?
我现在有一个要求,为了搜索和过滤网格,我不希望打开常规模型表单弹出操作,相反,过滤器应该在进入页面时打开,但不是作为弹出表单,而是应该位于页面,但仍然具有其所有功能。
需要看起来像这样:
再次让选择标签填充正确的信息(就像它们在弹出表单),当单击“保存”时,它应该像常规一样将请求发送到服务器。
这可能吗?
******编辑********
我基本上唯一需要的是过滤器不包含对话框部分。
I am using jqgrid.
I really need help with this, and have no clue how to do it, but i am sure its possible... can any one give me even a partial answer? were to start from?
I now have a requirement saying that for searching and filtering the grid I dont want the regular model form pop op thing opening, instead the filter should be open when entering the page but not as a pop up form , but should be on the top of the page but still have all the functions to it.
Needs to look like this:
And again having the select tag filled with the correct information (like they do in the popup form) and when clicking on "Save" it should send the request to the server, like regular.
Is this possible?
*******EDIT*******
The only thing i basically need is to have the filter with out the dialog part of it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在此处找到旧搜索对话框问题的解决方案。我将演示修改为 jqGrid 中搜索对话框的当前实现。
您可以在演示上查看结果:
相应代码如下:
The solution of the problem for the old searching dialog you can find here. I modified the demo to the current implementation of the searching dialog in the jqGrid.
You can see the results on the demo:
The corresponding code is below:
这是我在 Oleg 的出色帮助下实现它的方法。
我希望我的用户能够立即输入搜索条件(在本例中为用户名)并让 jqGrid 显示结果。不会弄乱弹出的“搜索”对话框。
这是我的最终结果:
为此,我需要这个 HTML:
和这个 JavaScript:
再次感谢Oleg 展示了如何使用这些搜索过滤器。
它确实使 jqGrid 更加用户友好。
Here's the way I implemented it, using Oleg's excellent help.
I wanted my users to be able to immediately type in a search criteria (in this case, a user's name) and for the jqGrid to show the results. No messing around with the popup Search dialog.
Here's my end result:
To do this, I needed this HTML:
and this JavaScript:
Again, my thanks to Oleg for showing how to use these search filters.
It really makes jqGrid much more user-friendly.