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

[Solved] Refresh parentpage element after close

3 Answers 190 Views
Window
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 10 Mar 2008, 08:43 PM
Hello,

I have a special scenario: A RadWindow is startet from the main parent-page through an RadWindowManager from a Button in a RadPane. Inside the RadWindow there is a form and an OK-Button. After pressing OK, there is some server-side Code being processed. In case of success the Radwindow should close (so far I'm done).

But now the main parent-page should refresh a special element (e.g. a RadGrid) in the pane (not the main parent-page but only in case of success.

Is such an scenario possible? Do you have a hint to do so?

I think I have to search for a way to communicate success from the RadWindow to the RadPane...

Thank you and kind regards,

Phil

3 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 11 Mar 2008, 08:10 AM
Hello Phil,

In general, you cannot communicate directly between the RadWindow's content page and the RadPane's one - the communication should go trough the main (topmost) page.

For convenience I created a small sample that shows a possible implementation and attached it to this thread. For clarity I separated the logic in 2 functions - one in the content page and one in the parent one. If needed these 2 can be combined in one function that exists on the content page.

I hope this helps. Please use the code as a base and extend it further to fit your requirements.




Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Philip
Top achievements
Rank 1
answered on 11 Mar 2008, 10:25 AM
Hi Georgi,

thank you very much. This works perfectly, although it is a bit circuitous, because this long invocation chain:

1. Window - ServerSide
2. Window - Client
3. Parentpage - Client
4. Pane - Client
5. Pane - ServerSide


Kind regards,
Phil
0
Georgi Tunev
Telerik team
answered on 11 Mar 2008, 10:43 AM
Hi Philip,

I am glad to know that the example was useful. As for the complexity of the approach, it is needed because RadWindow and the RadPane display content pages which are different from the parent one and the communication between these pages is done on the client - you will have the same logic if you replace the RadWindow and RadSplitter's pane with standard IFRAMEs / browser popup.



Sincerely yours,
Georgi Tunev
the Telerik team

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