Close RAD Window on Javascript Window.Close

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

    Posted 20 Feb 2011 Link to this post

    Hello,

    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
    Admin
    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. DevCraft banner
  4. 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 vb.net 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
                Next

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

    Thanks
  5. George
    Admin
    George avatar
    1332 posts

    Posted 18 Mar 2011 Link to this post

    Hello,

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

    Greetings,
    George
    the Telerik team
  6. 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.

    thanks
Back to Top
DevCraft banner