Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > RadControls in DotNetNuke > canceling partial refresh doesn't remove "module input blocker"

Not answered canceling partial refresh doesn't remove "module input blocker"

Feed from this thread
  • Max avatar

    Posted on Jan 16, 2012 (permalink)

    I've got a situation with a site where cancelling (rather preventing) a post-back, adds the input blocker even though the post-back never actually occurs.

    here is the code which is called for the   initPartialRequest()  event:

    confirmPostBack = function (sender, args){
        var confirmed = confirm("you might loose data, continue?");
        if (! confirmed){
            console.log("PREVENT POST BACK!!!");
            alert("Cancel called!!");
            var prm = Sys.WebForms.PageRequestManager.getInstance();
            if (prm.get_isInAsyncPostBack()) {
                alert("IS ASYNC POST-BACK");   
                prm.abortPostBack();
            }else{
                alert("NOT ASYNC POST-BACK !?!");  
                args.set_cancel(true);
            }
        }
    }

    We are only using the basic update panels and activated the DNN async refresh for this module.   the page itself uses the telerik RadTabStrip and has a few RadGrids within the various tabs of the page.

    The above code seems to work, since the page is not updated if we press cancel, but just after the confirm dialog closes, the page blocker appears, which is strange imho.

     help... I admit I am pretty lost at where to look for a solution... everything I search seems to indicate that I'm doing things properly.  There is also very little stuff on the net for these advanced asp.net event handling issues.

    Reply

  • Antonio Stoilkov Antonio Stoilkov admin's avatar

    Posted on Jan 18, 2012 (permalink)

    Hi Max,

    I have pasted a demo link that demonstrates Ajax / Partial Ajaxification. You could see if this will be in any help. If your problem still persists, please elaborate further on your scenario and, particularly, let us know from what control and when is the below JavaScript function called and what is its relation with the RadControls?


    All the best,
    Antonio Stoilkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > RadControls in DotNetNuke > canceling partial refresh doesn't remove "module input blocker"