RadWindow Manager Settings not getting applied to child windows

2 posts, 1 answers
  1. Theresa Repta
    Theresa Repta avatar
    8 posts
    Member since:
    Jul 2009

    Posted 30 Sep 2009 Link to this post

    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? 

  2. Answer
    Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 01 Oct 2009 Link to this post

    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.
Back to Top