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.