ajaxRequest and radopen

2 posts, 0 answers
  1. David Simmonds
    David Simmonds avatar
    56 posts
    Member since:
    Mar 2010

    Posted 23 Aug 2010 Link to this post

    I have a client-side handler for OnClientClick for a button. Here is what it looks like:

    function OpenReportWindow(nCompanyID, nDetailsID) { 
        var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>"); 
        var wnd = window.radopen("/CharitableSponsorshipsReport.aspx", null); 
        //wnd.setSize(750, 550); 
        return false

    Currently the server side handler for the ajaxRequest has all of the code commented out to help solve the issue. What I see happen is that the radopen window shows and then immediately closes. If I comment out the ajaxManager.ajaxRequest code the window shows and stays. Why is this? Is there a way to do the ajaxRequest and then the radopen? The ajaxRequest server handler performs some tasks that the aspx page needs when it shows.
  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 24 Aug 2010 Link to this post

    Hello David,

    Try handling the OnResponseEnd event of the RadAjaxManager to display the RadWindow. That way the ajax request completes its task before the RadWindow page is opened. Like so:

    function responseEnd(sender, eventArgs)
       if (eventArgs.get_eventArgument() == "Save"){
           var wnd = window.radopen("/CharitableSponsorshipsReport.aspx", null);

    I hope that helps
Back to Top