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

How to: Close a Radwindows from a RadButton

2 Answers 83 Views
Window
This is a migrated thread and some comments may be shown as answers.
Romell
Top achievements
Rank 1
Romell asked on 07 Jul 2012, 11:11 PM
Hi,

The CloseButton the RadWindow works fine!!!

But I'dlike to add a custom RadButton with "Close" that make exactly that....close the RadWindow in .NET

thats is possible?

Thanks all.....

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladi
Telerik team
answered on 12 Jul 2012, 06:59 AM
Hello Romell,

I have prepared and attached a sample project which shows how to close RadWindow using RadButton's Click event.

Regards,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Romell
Top achievements
Rank 1
answered on 12 Jul 2012, 01:40 PM
Thanks Vladi,

But I made a small change in the code .... why? Because my window Radwindow calls a user control and content from a control RadButton I close the call to the window.

In the end I included the code is as follows:

        Dim As RadWindow = Me.Parent parentWindow
        parentWindow.Close ()

Thank you in advance ...
Best regards
Tags
Window
Asked by
Romell
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Romell
Top achievements
Rank 1
Share this question
or