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

[Solved] how to open a new window from server side

1 Answer 314 Views
Window
This is a migrated thread and some comments may be shown as answers.
newbie
Top achievements
Rank 1
newbie asked on 09 May 2008, 11:28 PM
I want to open a new window on the click of a button.
I also want to adjust the height and width of the window.

I am doing this right now:

RadAjaxManager

.GetCurrent(this).ResponseScripts.Add("radopen('ReportViewerPopup.aspx);");

This loads a new window but I cannot adjust thr height and the width.

Also, I need to be able to pass in a parameter to the new window.I tried doing this:

RadAjaxManager

.GetCurrent(this).ResponseScripts.Add("radopen('ReportViewerPopup.aspx?ID=" + strID  + ");");

But this does not load thw window.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 10 May 2008, 10:05 AM
Hello newbie,

The height and the width of the RadWindow can be set either by using server-side properties (Width / Height) or by using the client-side setSize() method. More information on the subject is available in the documentation.
Please also note that the radopen() function accepts 2 arguments - Url and name of the window -
radopen("MyPage.aspx","RadWindow1");

If you still experience problems, please open a support ticket and send us a small sample project where we can reproduce them. Make sure that the project can be run locally and we will check it right away.



Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
newbie
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or