【发布时间】:2014-03-12 14:51:37
【问题描述】:
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 选项作为 true,因此我所有的搜索都是本地的,并且没有进行服务器调用。
【问题讨论】:
标签: javascript jquery css jqgrid