Close RAD Window on Javascript Window.Close

5 posts, 0 answers
  1. Masha Youlus-Susskind
    Masha Youlus-Susskind avatar
    3 posts
    Member since:
    Dec 2009

    Posted 20 Feb 2011 Link to this post


    we develop the following module inside Silverlight app:
    Silverlight RAD window with HTML placeholder inside it. HTML placeholder's content is aspx page with button. Button's onclick() calls javascript window.close method.
    We want to close the RAD window automatically when that javascript window.close occurs. Currently when the button is pressed, the RAD window remains open.

    Thank you,
    Masha Youlus-Susskind
  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 24 Feb 2011 Link to this post

    Hello Masha,

     The RadWindow control for Silverlight is a generic window control and is not so closely integrated with the HTMLPlaceholder control - it cannot close automatically when the HTML window is closed, but you could still implement this yourself. What you need to do is to call the RadWindow's Close method when you want to close it.

    If you need more information, don't hesitate to ask.

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. Didier
    Didier avatar
    3 posts
    Member since:
    Mar 2011

    Posted 16 Mar 2011 Link to this post

    Hello All

    I got the same problem, the things I want is to close all RADWindow by code in responding to a specific event. The code I wrote is
               For Each uielement As Object In LayoutRoot.Children
                    If TypeOf uielement Is Telerik.Windows.Controls.RadWindow Then
                        TryCast(uielement, Telerik.Windows.Controls.RadWindow).Close()
                    End If

    My question is "Is there another container that I can run through to find all the RADWindow to close"

  4. George
    George avatar
    1332 posts

    Posted 18 Mar 2011 Link to this post


    I would suggest yo to use the RadWindowManager.Current.CloseAllWindows() method. 

    the Telerik team
  5. Didier
    Didier avatar
    3 posts
    Member since:
    Mar 2011

    Posted 21 Mar 2011 Link to this post

    Hi George

    My colleague found that since wednesday, and it works well.

Back to Top