关于editgrid的一个问题

提问 已结 1 9121
悬赏:20飞吻
下图是一个editgrid,设置了autoSave:true

然后对“楼栋数量”进行修改,这个editor是个numberbox,,如果输入中文,后台返回报错


这是关闭弹窗,“楼栋数量”的值没有了

我应该怎样修改来避免这种返回报错以后,原值显示不回来的问题?

<table id="configEdatagrid" data-toggle="topjui-edatagrid"
data-options="id:'configEdatagrid',
autoSave:true,
url:url,
updateUrl:update_url
<thead>
<tr>
<th data-options="field:'haCode',title:'小区码',sortable:false"></th>
<th data-options="field:'haName',title:'物业社区名称',sortable:true"></th>
<th data-options="field:'typeName',title:'建筑类型',sortable:true"></th>
<th data-options="field:'bldgQt',title:'楼栋数量',sortable:true,editor:{type:'numberbox'}"></th>
<th data-options="field:'existBldgQt',title:'已建楼栋数量',sortable:true"></th>
</tr>
</thead>
</table>
回帖
回帖须知