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
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
0
Hello Masha,
Miroslav Nedyalkov
the Telerik team
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.
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
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
Hello,
George
the Telerik team
I would suggest yo to use the RadWindowManager.Current.CloseAllWindows() method.
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
My colleague found that since wednesday, and it works well.
thanks