Returning values from a Dialog example is not working

9 posts, 0 answers
  1. franchute
    franchute avatar
    28 posts
    Member since:
    Jan 2008

    Posted 23 Jan 2008 Link to this post

    Hi, I'm following the example about returning values from a dialog and I found an issue when changing the way in which I get the specified value from the dialog.

    The example is working fine when I use
    //Variant1: Passing the argument to the close method will result in the same behavior
     oWindow.close(oNewText);

    Since I need to use the ClientCallBackFunction, I have replaced the above line with this one:

     //Variant2: Invoke the calback function, pass it the result as an argument
    oWindow.CallBack(oNewText);

    However, I'm getting an error on this line when trying to execute it.

    Do you have any idea what's going on here ?


    Thanks,

    François.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 23 Jan 2008 Link to this post

    Hello François,

    I believe the following forum thread will be of help:
    http://www.telerik.com/community/forums/thread/b311D-bbkkht.aspx




    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. franchute
    franchute avatar
    28 posts
    Member since:
    Jan 2008

    Posted 23 Jan 2008 Link to this post

    Hi Georgi, thanks for your answer.

    I have read the post you sent me but I think this is not exactly the same problem I`m getting here.
    In fact, I was able to send values back from the dialog by passing the arguments to the close method but I get an error when using the ClientCallBack method.




  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 23 Jan 2008 Link to this post

    Hello franchute,

    In such case can you please open a support ticket and send me a small project that reproduces the problem? I will check it and once I have a better view over your exact scenario, I will get back to you with a solution.


    Thank you in advance for your cooperation.



    Greetings,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. franchute
    franchute avatar
    28 posts
    Member since:
    Jan 2008

    Posted 23 Jan 2008 Link to this post

    Thanks again for your answer.

    One way to reproduce this error is to change a line in the Dialog.aspx file of the example.
    In the OK_Clicked method of this file, you should comment the line oWindow.close(oNewText) and uncomment the one which says oWindow.CallBack(oNewText);

    By doing this, the example is not working any more.

    Let me know if you find something here,

    Thanks in advance,

    François.


  7. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 24 Jan 2008 Link to this post

    Hi franchute,

    I just noticed that I have missed the fact that you are using the Prometheus version of the control - I apologize for that. In RadWindow Prometheus, the Callback property does not exist in the client-side API and cannot be used.

    I assume that you have seen an older version of the demo, because this part of the code was removed in the latest update of RadWindow Prometheus - you can check that on our online demos. You will need to use one of the other 2 approaches to send the information back to the parent page.


    Once again, sorry for the omission.



    Regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. franchute
    franchute avatar
    28 posts
    Member since:
    Jan 2008

    Posted 25 Jan 2008 Link to this post

    Okay, thank you for your answer.

    François
  9. Simon
    Simon avatar
    32 posts
    Member since:
    Apr 2007

    Posted 10 Mar 2008 Link to this post

    Hello Franchute

    Before I used to call

    "oWindow.Callback(xyz)"

    For Prometheus, I use

    "oWindow._invokeDialogCallBackFunction(xyz)"

    It works for me and I currently have 5 different RadWindows
    doing their own thing.

    Regards,
    Simoln
  10. rcbarth
    rcbarth avatar
    13 posts
    Member since:
    Dec 2006

    Posted 10 Mar 2008 Link to this post

    By convention, a method that starts with "_" is a private method, and it's functionality can change from one release to another, or be completely eliminated.

    You should really use the close() method on the window with the ClientCallbackFunction property set on the asp tag. Whatever you pass to the close method will be passed to whatever javascript function you have specified in the ClientCallbackFunction property.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017