List of opened RadWindows

3 posts, 0 answers
  1. wnl
    wnl avatar
    106 posts
    Member since:
    Aug 2007

    Posted 29 Nov 2010 Link to this post

    Is any cleverly way to prepare a list of opened RadWindows and alway shows it in application (e.g. in any corner of a website)?

  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 29 Nov 2010 Link to this post

    Hello Jaromin,

    Do you need a list of the opened RadWindow's objects (e.g. code) or some visual presentation of the opened windows?
    If you need to get the list of all RadWindows in client code, you could use the get_windows() method:
    <form id="form1" runat="server">
    <asp:ScriptManager ID="SC1" runat="server">
    <script type="text/javascript">
        var nameID = 0;
        var offsetPX = 100;
        function openWins()
            nameID = nameID + 1;
            offsetPX = offsetPX + 30;
            var oWnd = radopen("", "RadWindow" + nameID);
            oWnd.set_title("RadWindow" + nameID);
            oWnd.moveTo(100, offsetPX);
        function closeSpecificWin()
            var windowManager = GetRadWindowManager();
            var allWindows = windowManager.get_windows();
            for (var i = 0; i < allWindows.length; i++)
                var currentWindow = allWindows[i];
                if (currentWindow.get_name() == "RadWindow2")
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    <button onclick="openWins();return false;">
        Open RadWindows</button>
    <br />
    <button onclick="closeSpecificWin();return false;">
        Close specific RadWindow (RadWindow2)</button>

    If you need a visual representation, you could check our MDI demo where we use RadTabStrip along with the RadWindow control. 

    All the best,
    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.
  3. wnl
    wnl avatar
    106 posts
    Member since:
    Aug 2007

    Posted 29 Nov 2010 Link to this post

    Thanks Georgi Tunev. I'll try that solution.
Back to Top