1
JqGrid默认搜索对话框中是否有任何选项可用于增加搜索中文本框的宽度。JQGrid默认搜索对话框,输入字段宽度
下面是图片:
更新代码为我的搜索如下:
jQuery("#subscriptions").jqGrid(
'navGrid',
'#pager',
{ del: false, add: false, edit: false },
{},
{},
{},
{
multipleSearch: true,
closeAfterSearch: true,
beforeShowSearch: function ($form) {
$(".searchFilter table td .input-elm").attr('style', 'width:400px');
$('#searchmodfbox_subscriptions').width(750);
return true;
},
afterRedraw: function ($form) {
$(".searchFilter table td .input-elm").attr('style', 'width:400px');
return true;
}
});
我也使用loadonce的选择,因为真正的在我的网格,因此我所有的搜索是本地的,并且不进行服务器调用。
感谢@avijendr但加入后beforeShowSearch我的搜索对话框是不开放。我检查铬控制台,也没有错误。 – nido
@nido - 这是jqgrid中的错误(在4.4中介绍)。我更新了答案您必须在beforeShowSearch中返回true。请让我知道这是否有效。它适用于我本地! – avijendr
真棒,那就像一个魅力。谢谢! – nido