Multiple Rad windows under single Radwindow Manager

4 posts, 0 answers
  1. satya r
    satya r avatar
    8 posts
    Member since:
    Aug 2009

    Posted 13 Sep 2009 Link to this post

    I have a situation where I am defining mutliple Radwindows under Radwindow Manager.

    <Rad windowmanager  id = RdManager1 >

    <radwindow1 id = rdwindoweasy> </radwindow>
    <radwindow1 id = rdwindowhard> </radwindow>

    Here I want to set the radwindow size individually for each windows..But when I set so its not applying...It applies to all whn I set to radwindow manager.Please any suggestions on how do I set the radwindow size..i do not want to set it dynamically.

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Sep 2009 Link to this post

    Hello Satya,

    I tried setting the height and width of individual windows in the RadWindowManager as shown below. Did you try setting it the same way? If not try this code and let me know if it helps:
    <telerik:RadWindowManager ID="RdManager1" runat="server"
        <telerik:RadWindow ID="rdwindoweasy" Height="200px" Width="500px"  runat="server"
        <telerik:RadWindow ID="rdwindowhard" Height="500px" Width="1000px" runat="server"

    You can also make use of the RadWindow Collection Editor for RadWindowManager objects which will help you add, remove and configure the windows of a RadWindowManager control. Check out the following document to find out more on this:
    RadWindow Collection Editor

  3. satya r
    satya r avatar
    8 posts
    Member since:
    Aug 2009

    Posted 14 Sep 2009 Link to this post

    ya I did exactly the same way as u mentioned.But thats my issue..It does not works..How about adding a separate radwindow manager for each radwindows? ..does that work?
  4. Fiko
    Fiko avatar
    1406 posts

    Posted 16 Sep 2009 Link to this post

    Hi Satya,

    I assume that you are using several RadWindowManagers on the same page. If this is so, please note that by design, all of the RadWindowManager's functions - radopen, radalert, radconfirm, , etc. will always use the RadWindowManager that is first rendered on the page. In scenarios like yours, I recommend you customize the RadWindows after it is opened by using its client-side API. For example you can set the window's size like this :
    <script language="javascript" type="text/javascript">  
        function openWindow(val, wndName)  
            var ownd = window.radopen(val, wndName);  
            ownd.setSize(500, 500);  
            return false;  

    There are three possible scenarios for the radopen function:
    • if the RadWindow with the same ID already exist (the second parameter of the function) on the page, then that window will be open
    • if the RadWindow with passed ID does not exist on the page, then a new RadWindow will be created with that ID. The new window has the default values, set in the RadWindowManager's declaration.
    • if you pass the "null" value to the ID parameter of the radopen() function, then a new RadWiindow will be created every time when you call that function. A random generator will be used in order to assign unique ID for every opened RadWindow.

    As an alternative you can use this approach :

    function openChat()  
        var oRadWindowManager = $find("<%= RadManager1.ClientID %>");  
        var oWindow ="rdwindoweasy");  

    In the code above we found the right RadWindowManager object and then open the window that is declared inside it with the properties set in its declaration.

    I hope that the helps.

    Kind regards,
    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