Passing values to Parent from Radwindow on close

7 posts, 0 answers
  1. Randy
    Randy avatar
    18 posts
    Member since:
    May 2008

    Posted 07 Aug 2009 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Aug 2009 Link to this post

    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.
  3. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 10 Aug 2009 Link to this post

    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.
  4. Randy
    Randy avatar
    18 posts
    Member since:
    May 2008

    Posted 10 Aug 2009 Link to this post

    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?
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 10 Aug 2009 Link to this post

    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.
  6. Randy
    Randy avatar
    18 posts
    Member since:
    May 2008

    Posted 10 Aug 2009 Link to this post

    I have submitted a ticket... Thanks.
  7. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 10 Aug 2009 Link to this post

    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.
Back to Top