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

RadWindow Manager Settings not getting applied to child windows

1 Answer 105 Views
Window
This is a migrated thread and some comments may be shown as answers.
Theresa Repta
Top achievements
Rank 1
Theresa Repta asked on 30 Sep 2009, 06:51 PM
I have a UserControl with a RadWindowManager Control and a Repeater (both are inside an asp:UpdatePanel).  Embedded inside the Repeater is a DataGrid that has a column of LinkButtons.  When clicked, the LinkButtons call a javascript function to open up RadWindow and display some additional data.

The LinkButtons are correctly executing the JavaScript.  The problem is that the RadWiindow that displays is not getting its default properties from the RadWindowManager.  I also cannot apply them within the js function.

My RadWindowManager is defined like:
<telerik:RadWindowManager ID="radWinManager" DestroyOnClose="false" Modal="false" Width="600px" Height="600px" AutoSize="true" runat="server" Behaviors="Close,Move"  Skin="Sunset"
    <Windows> 
    </Windows>                              
</telerik:RadWindowManager>  

My javascript function is as follows:

function ViewBillingHistory(userid, taskid) 
    { 
         var url = 'someurl.aspx'
          var oManager = GetRadWindowManager(); 
          if(oManager != null) 
          { 
             
            var win = radopen(url, “radWinBilling”); 
             
          } 
                   
    } 


The Window that results does not have the skin or "behavior" items I set, nor does it open to the size specified (even with AutoSize turned off). 

I've also tried setting the window's properties via the javaScript function, but they don't seem to work there either. 

Ex:
function ViewBillingHistory(userid, taskid) 
    { 
         var url = 'someurl.aspx'
          var oManager = GetRadWindowManager(); 
          if(oManager != null) 
          { 
             
            var win = radopen(url, null); 
            win.setSize(600, 600); 
          } 
                   
    } 

How do I get the formatting of the WindowManager to apply to child Windows? 

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 01 Oct 2009, 09:34 AM
Hi Theresa,

The code looks fine, so my guess is that there is another RadWindowManager on that page - note that all RadWindowManager's functions like radopen, radalert, radconfirm, etc. are always using the RadWindowManager that is first rendered on the page.

If this is not the problem, please open a support ticket and send us a small sample project where this issue could be reproduced. We will check it right away.


Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Theresa Repta
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or