easyui中,searchbox和datagrid一起使用时发现的一个问题

提问 未结 1 4636
悬赏:20飞吻
页面中有个datagird,表头工具栏放一个searchbox,首次进入页面的时候一切正常,当时当双击了datagrid的任意单元格之后,searchbox就再也无法输入内容,这是为什么?
代码如下:

<div id="shaixuanqu" style="padding: 5px;">
//这里是一个普通的searchbox控价,由于我的是js输出控件,所以不太方便贴代码
</div>

<table id="dg" data-options="toolbar:'#shaixuanqu'"></table>
<script>
$("#dg").datagrid({
method: "GET",
width: "100%",
height: frmHeight + "px",
fitColumns: true,
showFooter: true,
striped: true,
pagination: true,
pageSize: 21,
pageList: [10, 21, 50, 100],
loadFilter: pagerFilter,
onDblClickCell: function (index, field, value) {
//一些业务代码
},

frozenColumns: [[
{ field: "编码", title: "编码", sortable: true, width: "100px" },
{ field: "条形码", title: "条形码" },
]],
columns: [[
{ field: "中文称呼", title: "中文称呼", editor: "textbox", width: "150px" },
{ field: "英文称呼", title: "英文称呼", editor: "textbox", width: "150px" }
]],

});
</script>


这大概是由什么原因引起的呢
界面图如下:
回帖
回帖须知