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.
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.
8 Answers, 1 is accepted
0
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
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
0
franchute
Top achievements
Rank 1
answered on 23 Jan 2008, 01:41 PM
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.
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.
0
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
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
0
franchute
Top achievements
Rank 1
answered on 23 Jan 2008, 02:17 PM
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.
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.
0
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
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
0
franchute
Top achievements
Rank 1
answered on 25 Jan 2008, 12:32 PM
Okay, thank you for your answer.
François
François
0
Simon
Top achievements
Rank 1
answered on 10 Mar 2008, 08:42 PM
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
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
0
rcbarth
Top achievements
Rank 1
answered on 11 Mar 2008, 12:12 AM
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.
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.