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

Modal window in child window

1 Answer 78 Views
Window
This is a migrated thread and some comments may be shown as answers.
khai
Top achievements
Rank 1
khai asked on 10 Mar 2011, 05:25 AM
Hi Telerik,
I have a problem when open a modal popup in child window. There're two cases:
 - Open popup in child window: that's OK
 - Open popup on parent window: can't set height of window
Here's my code:
var oWnd = null;
var modalparent = true;
if (!modalparent) {
      // open modal popup inside
      oWnd = radopen(url);
}
else {
      // open modal popup on parent window
      oWnd = window.parent.radopen(url);
}
            
// set height, width
oWnd.SetHeight(iHeight); // it doesn't work whenopen modal popup on parent window
 oWnd.SetWidth(iWidth);
Hope you can help me, thanks.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Mar 2011, 12:25 PM
Hello,


If you are using RadControls for ASP.NET AJAX, then use the set_width and set_height() methdo.

For more information about client side methods of RadWindow:
RadWindow Methods



-Shinu.
Tags
Window
Asked by
khai
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or