This is a migrated thread and some comments may be shown as answers.

Radwindow return value problem

1 Answer 72 Views
Window
This is a migrated thread and some comments may be shown as answers.
Pardha Saradhi
Top achievements
Rank 1
Pardha Saradhi asked on 29 Nov 2010, 08:01 AM
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.

1 Answer, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 29 Nov 2010, 02:37 PM
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.
Tags
Window
Asked by
Pardha Saradhi
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Share this question
or