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

Passing values to Parent from Radwindow on close

6 Answers 802 Views
Window
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 07 Aug 2009, 10:05 PM
What is the best method and/or do you have an example of how to send values from the Radwindow to the Parent on close of the radwindow?

Thanks

Randy

6 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Aug 2009, 05:51 AM
Hi Randy,

You can pass the return values as argument and it is possible to get the argument in OnClientClose event of RadWindow which is in parent page. Checkout the following documentation which shows how to pass the value as argument.
Using RadWindow as a Dialog

Also check out the online demo which demonstrates the scenario:
Returning Values from a Dialog

-Shinu.
0
Georgi Tunev
Telerik team
answered on 10 Aug 2009, 06:41 AM
Hi Randy,

I believe that the following documentation article will be of help: Using RadWindow as a Dialog.

Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Randy
Top achievements
Rank 1
answered on 10 Aug 2009, 12:05 PM
I think I have all that, but one of the problems I am running into is that I am unable to get the value of any control in the radwindow to pass back to that parent page.  No matter what method I use I get that the value is undefined.  Any Ideas?
0
Georgi Tunev
Telerik team
answered on 10 Aug 2009, 12:27 PM
Hi Randy,

Since I don't know what your exact setup is and what is the logic that you wish to implement, I would suggest to open a support ticket and to send me a small sample project. Just make sure that the project
  1. can be run locally (e.g. is not missing files, database etc.)
  2. reproduces your exact setup and describes the desired behavior
and attach it to the support thread. I will check it right away and do my best to help you.

Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Randy
Top achievements
Rank 1
answered on 10 Aug 2009, 01:28 PM
I have submitted a ticket... Thanks.
0
Georgi Tunev
Telerik team
answered on 10 Aug 2009, 01:49 PM
Hello Randy,

I just answered your support ticket and sent you back a modified version of your content page. For convenience I am pasting my reply below:



Please find attached the modified version of your content page where I fixed some problems.
The errors were:
  1. You need to cancel the postback when executing the OnClientClick eventhandler.
  2. $find is used to get a reference to ASP.NET AJAX's controls. To get a reference to the standard hiddenfield control, you should use $get. More information on the subject is available here.
  3. The correct property of the hidden field is value (note the lower-case "v")

I hope this helps.


Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Randy
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Georgi Tunev
Telerik team
Randy
Top achievements
Rank 1
Share this question
or