edatagrid新增失败后,点击失败提示信息,如何刷新当前页面

提问 已结 6 5586
悬赏:20飞吻

<table id="dg" data-toggle="topjui-edatagrid" data-options="id:'dg',url:'__URL__/S001',
idField:'ID',
reloadAfterSave:true,
saveUrl:'__URL__/S101',
updateUrl:'__URL__/S201',
destroyUrl:'__URL__/S301'">
<thead>
<tr>
<th data-options="field:'ID',title:'UUID',checkbox:true"></th>
<th data-options="field:'CODE',title:'用户编码',sortable:true,editor:{type:'textbox',options:{required:true,height:30}}"></th>
<th data-options="field:'NAME',title:'名称',sortable:true,width:200,editor:{type:'textbox',options:{required:true,height:30}}"></th>
<th data-options="field:'PASSWORD',title:'密码',sortable:true,width:300,editor:{type:'textbox',options:{required:true,height:30}}"></th> </tr>
</thead>
</table>
<!-- 表格工具栏 -->
<div id="dg-toolbar" data-options="grid:{
type:'edatagrid',
id:'dg'}" class="topjui-toolbar">
<a href="javascript:void(0)"
data-toggle="topjui-menubutton"
data-options="method:'edatagrid',
extend: '#dg-toolbar',
iconCls:'fa fa-plus',
btnCls:'topjui-btn-green',
type:'addRow'">新增</a>
<a href="javascript:void(0)"
data-toggle="topjui-menubutton"
data-options="method:'edatagrid',
extend: '#dg-toolbar',
iconCls:'fa fa-save',
btnCls:'topjui-btn-brown',
type:'saveRow'">保存</a>
<a href="javascript:void(0)"
data-toggle="topjui-menubutton"
data-options="method:'edatagrid',
extend: '#dg-toolbar',
iconCls:'fa fa-remove',
btnCls:'topjui-btn-black',
type:'cancelRow'">取消</a>
<a href="javascript:void(0)"
data-toggle="topjui-menubutton"
data-options="method:'edatagrid',
extend: '#dg-toolbar',
iconCls:'fa fa-remove',
btnCls:'topjui-btn-blue',
type:'destroyRow'">删除</a>
<a href="javascript:void(0)"
data-toggle="topjui-menubutton"
data-options="method:'filter',
extend: '#dg-toolbar',
btnCls:'topjui-btn-black'">过滤</a>
</div>

是否需获取点击确定的事件?怎么获取
回帖
回帖须知