Ext.Net 1.x_Ext.Net_执行后台程序提示等待信息,运行完毕消失

来源:互联网 发布:smart电子白板软件安装 编辑:程序博客网 时间:2024/05/16 15:53
今天群里有朋友问,小叶子提供如下方法。
                                    <ext:Button ID="btnQuery" runat="server" Text="查询" Icon="Find">                                        <DirectEvents>                                            <Click OnEvent="Query"  Before="Ext.Msg.wait('正在提交数据,请稍候...','查询');"                                             Failure="Ext.Msg.show({                                                    title:'Error',                                                    msg:'查询失败',                                                    minWidth:200,                                                    modal:true,                                                    icon:Ext.Msg.ERROR,                                                    buttons:Ext.Msg.OK                                                 });">                                            </Click>                                        </DirectEvents>                                    </ext:Button>

或者

this.btnTest.DirectEvents.Click.Before = "Ext.Msg.wait('上传...','上传');";

后台执行完毕,消息不关闭。

只好后台增加一句:X.Msg.Hide(); 程序执行完毕,消息提示隐藏。不过奇怪Before时间本来就后台方法完毕之后就结束的呀?