Radwindow return value problem

2 posts, 0 answers
  1. Pardha Saradhi
    Pardha Saradhi avatar
    28 posts
    Member since:
    Jul 2010

    Posted 29 Nov 2010 Link to this post

    Hi,
    I have developed opening of radwindow using the following code.

    function ShowDialogTest() {

                var wnd = window.radopen("TestUpLoad.aspx", "Test");

                wnd.setSize(700, 265);

                wnd.set_modal(true);

                wnd.center();

                wnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize);

                wnd.show();           

            }     


    and i am loading the radwindow using the following server side code.

    protected void cmbTest_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)

        {

           

            if (e.Text.ToUpper() == "YES" || e.Text.ToUpper() == "NO")

            {

               

                ScriptManager.RegisterStartupScript(this, this.GetType(), "Test", "ShowDialogTest();", true);

     

     

    //Rest Of the Code

     

     

        
    //Block 1

    //Block2


            }

    }

    but , i have been facing the following issues
    1)i am unable to know how to pass a value from radwindow to the base page(from where it is called).
    2)when i execute "ScriptManager.RegisterStartupScript" line to load popup, i would like to hold that line without executing till the value returns from the radwindow, based of the return value from the popup then i would like to execute either "Block1" or "Block2".

    Please let me know the better solution for this.
    Thanks in advance.

  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 29 Nov 2010 Link to this post

    Hello Pardha,

    The situation you're describing is not possible. You can't pause the web application until the result of the RadWindow returns. You will need to create another event that the RadWIndow can raise when the return value from the RadWindow is received.
Back to Top