有没有一种方法来禁用的UpdateProgress某些异步回发? [英] Is there a way to disable UpdateProgress for certain async postbacks?

查看:147
本文介绍了有没有一种方法来禁用的UpdateProgress某些异步回发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个UpdateProgress控件,显示为覆盖(使用CSS)的所有异步事件的更新面板。现在,对于某些展开/折叠行命令的事件,我只是不希望显示的UpdateProgress。

有没有办法?

解决方案

 <脚本类型=文/ JavaScript的>
    变种PRM = Sys.WebForms.PageRequestManager.getInstance();
    prm.add_initializeRequest(InitializeRequest);

    功能InitializeRequest(发件人,参数){
        VAR的UpdateProgress = $的get('UpdateProgress1');
        变种postBackElement = args.get_postBackElement();
        如果(postBackElement.id =='&其中;%= Button1.ClientID%GT;'){
            updateProgress.control._associatedUpdatePanelId ='dummyId';
        }
        其他{
            updateProgress.control._associatedUpdatePanelId = NULL;
        }
    }

< / SCRIPT>
 

I have an UpdateProgress control, that shows as an overlay (using CSS) for all async events for an update panel. Now, for certain EXPAND/COLLAPSE row command events, i just dont want to show that updateprogress.

Is there a way?

解决方案

<script type="text/javascript">
    var prm = Sys.WebForms.PageRequestManager.getInstance();
    prm.add_initializeRequest(InitializeRequest);

    function InitializeRequest(sender, args) {
        var updateProgress = $get('UpdateProgress1');
        var postBackElement = args.get_postBackElement();
        if (postBackElement.id == '<%= Button1.ClientID %>') {
            updateProgress.control._associatedUpdatePanelId = 'dummyId';
        }
        else{
            updateProgress.control._associatedUpdatePanelId = null;
        }
    }

</script>

这篇关于有没有一种方法来禁用的UpdateProgress某些异步回发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆