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

RadWindow open from server side

1 Answer 128 Views
Window
This is a migrated thread and some comments may be shown as answers.
Corina
Top achievements
Rank 1
Corina asked on 21 Nov 2011, 04:55 PM
Hi

  On my main page I have a button which brings up a radwindow when clicked. The button event on the server side does some processing which determines the URL querystring elements.

How can I set the URL on server side and then open the rad window?

Or is it possible for me to send the URL back to the client side and open from there?

Please help,

Thanks :-)

1 Answer, 1 is accepted

Sort by
0
Accepted
Stuart Hemming
Top achievements
Rank 2
answered on 22 Nov 2011, 08:04 AM
Corina,

I'm not sure I follow you, but I think you want to do this:

  1. Click on a button
  2. Postback and do some processing to generate a URL
  3. Open a RadWindow using the URL

If this is the case, then you need only call radopen() with your URL as a parameter from your server-size code. You can do this by using a code like this... 
string script = String.Format("radopen('{0}', '{1}');", url, windowName);
Page.ClientScript.RegisterStartupScript(this.GetType(), "script", script, true);

Alternatively, if you prefer to use the RadAjaxManager...
RadAjaxManager.GetCurrent(Page).ResponseScripts.Add(String.Format("radopen('{0}', '{1}');", url, windowName));


-- 
Stuart

Tags
Window
Asked by
Corina
Top achievements
Rank 1
Answers by
Stuart Hemming
Top achievements
Rank 2
Share this question
or