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

Setting radwindow-properties from within radwindow

3 Answers 96 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ole Albers
Top achievements
Rank 2
Ole Albers asked on 27 Nov 2010, 05:44 PM
Hi there

I open a radwindow using the radwindow.open(url, radwindowmanagerid) method.

Inside the page that is shown in the opened window  I need to maximize the window from codebehind.  How can that be done?

3 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 29 Nov 2010, 06:55 AM
Hello Ole,


You can do it from client side. Get reference to RadWindow client object and use the "maximize()" method to maximize the window.

The client function returns the radwindow client object.

Client code:
function GetRadWindow()
{
  var oWindow = null;
  if (window.radWindow)
     oWindow = window.radWindow;
  else if (window.frameElement.radWindow)
     oWindow = window.frameElement.radWindow;
  return oWindow;
}

Check this link, for more methods of radwindow.
RadWindow Methods



-Shinu.
0
Accepted
Georgi Tunev
Telerik team
answered on 29 Nov 2010, 09:06 AM
Hello guys,

Ole, basically, what you need to do is to output JavaScript from the server that would call GetRadWindow().maximize() - make sure that the GetRadWindow() function exists in the content page.

Greetings,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Ole Albers
Top achievements
Rank 2
answered on 29 Nov 2010, 11:11 PM
worked. thanks
Tags
Window
Asked by
Ole Albers
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Georgi Tunev
Telerik team
Ole Albers
Top achievements
Rank 2
Share this question
or