- 注册时间
- 2012-8-26
- 最后登录
- 2013-4-27
- 阅读权限
- 10
- 积分
- 510
- 精华
- 0
- 帖子
- 149
|
http://www.miniui.com/demo/runCode/index.html 不刷新DataGrid
http://www.miniui.com/demo/datagrid/datagrid.html 刷新DataGrid
上面两个有什么区别?
为什么我弹窗后关闭不刷新呢?
- function CloseWindow(action) {
- $.post("@Url.Action("Cancel","Business")", {}, function (result) {
- if (action == "close" && form.isChanged()) {
- if (confirm("数据被修改了,是否先保存?")) {
- return false;
- }
- }
- window.parent.grid.reload();
- if (window.CloseOwnerWindow) return window.CloseOwnerWindow(action);
- else window.close();
- });
- } function onCancel(e) {
- CloseWindow("cancel");
- }
复制代码 父窗体弹出方法
- function add() {
- mini.open({
- url: "@Url.Action("AddPlanView")",
- title: "新增计划", width: 1000, height: 560,
- onload: function () {
- var iframe = this.getIFrameEl();
- var data = { action: "new" };
- //iframe.contentWindow.SetData(data);
- },
- ondestroy: function (action) {
- alert("dfasdf");
- grid.reload();
- }
- });
- }
复制代码
|
|