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

[Solved] RadWindow opened from another RadWindow

1 Answer 138 Views
Window
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 2
Steve asked on 17 Jan 2008, 09:48 PM
Hello, I was referencing this KB article --- http://www.telerik.com/support/kb/article/b454K-ggk-b454T-cec-b454c-cec.aspx --- (which was very helpful) showing how to open one RadWindow from another.  I definitely like the method of opening the second window making the main form the parent.  But if you do that, how does that first RadWindow capture when the second window is closed (in case data was updated in the 2nd window and display needs to be updated in the 1st)?

For example, you open a RadWindow from the main application form to show info about a user.  The data is displayed in a read-only format.  To edit, you click an "Edit" button which opens a second RadWindow.  If data is saved there, the first RadWindow needs to know to update data from the database.  But all the while, the main application form is the parent to both RadWindows.

Can you help?

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 18 Jan 2008, 11:13 AM
Hello Steve,

I believe the following section of the documentation will help in this case: Controls / RadWindow / Programming / Calling Functions in Windows

For example you can attach to the OnClientClose event of the second RadWindow and call a predefined function in the first one which will initiate the database update.



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Steve
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Share this question
or