This is a migrated thread and some comments may be shown as answers.

Close RAD Window on Javascript Window.Close

4 Answers 117 Views
Window
This is a migrated thread and some comments may be shown as answers.
Masha Youlus-Susskind
Top achievements
Rank 1
Masha Youlus-Susskind asked on 20 Feb 2011, 10:20 AM
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

4 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 24 Feb 2011, 10:16 AM
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!
0
Didier
Top achievements
Rank 1
answered on 16 Mar 2011, 07:56 AM
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
0
George
Telerik team
answered on 18 Mar 2011, 05:03 PM
Hello,

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

Greetings,
George
the Telerik team
0
Didier
Top achievements
Rank 1
answered on 21 Mar 2011, 07:12 AM
Hi George

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

thanks
Tags
Window
Asked by
Masha Youlus-Susskind
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Didier
Top achievements
Rank 1
George
Telerik team
Share this question
or