Show AjaxProgress on Parent page after RadWindow Close

2 posts, 0 answers
  1. D O
    D O avatar
    9 posts
    Member since:
    Jul 2009

    Posted 21 Jan 2010 Link to this post

    Hi

    I have a very irritating problem.  I have a MasterPage and a Content Page.  The content page is opening a Radwindow where the user is entering info.  When the user closes the RadWindow I call the PostBack Function of a Linkbutton called Test.  This works perfectly and the postback happens every time the RadWindow is closed to update the interface on the Content Page to reflect the changes made in the RadWindow.  Only problem is, I have created a AjaxUpdatePanel and AjaxUpdateProgress in the area where the Linkbutton Test is.  When I click the "Test" linkbutton on the Content Page I see the update panel showing the ajax indicator.  But when I call the function to call the Postback event of "Test" on RadWindow Close, I don't get the Ajax Updating Indicator.

    Here's my code on the Master Page for the postback:

    <

     

    script type="text/javascript">

     

    //<![CDATA[

    var

     

    theForm = document.forms['aspnetForm'];

     

    if

     

    (!theForm) {

     

    theForm = document.aspnetForm;

    }

    function

     

    doPostBack2() {

     

     

    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {

     

    theForm.__EVENTTARGET.value =

    'ctl00$ContentPlaceHolder1$Test';

     

    theForm.__EVENTARGUMENT.value =

    '';

     

    theForm.submit();

    }

    }

    //]]>

    </

     

    script>

    And here's my code on the Content Page to open the Radwindow:

     

     

    <telerik:RadWindow

     

     

     

     

     

    id="RadWindow1"

     

     

    runat="server"

     

     

     

     

     

    showcontentduringload="False"

     

     

     

     

     

    width="900px"

     

     

     

     

     

    height="520px"

     

     

     

     

     

     

    onclientclose="doPostBack2"

     

     

     

     

     

    title="My Professional Profile - Please be patient while loading..." Modal="true" VisibleStatusbar="false" Skin="Black" style="z-index: 1; display:none;" InitialBehavior="None" Left="" NavigateUrl="" Top="">

     

     

     

     

     

    </telerik:RadWindow>

     



    And here's my VB code that posts back for the "Test" linkbutton:

     

    Protected Sub Test_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Test.Click

     

     

    Call GetPPStatus()

     

     

    End Sub

    So as I said before, everything works fine when I physicallly click the "Test" linkbutton (it posts back and shows the Ajax Update Indicator). And when I close the RadWindow it actually posts back and does everything that I want it to do in the GetPPStatus() sub except it's not showing the ajax indicator. 

    Any help would be appreciated!

     

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 Jan 2010 Link to this post

    Hello D O,

    I believe that the following documentation article will be of help: Show and hide loading panel explicitly.


    Kind regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top