Kyle Schiele
Top achievements
Rank 1
Kyle Schiele
asked on 26 Feb 2008, 01:57 PM
For some reason if I define the ClientCallBack function of a window with java script it does not execute, If I define the same function as the client call back function of the RadWindowManager it operates properly.
var radWindow = window.radopen(url, null );
radWindow.SetTitle(title);
radWindow.ClientCallBackFunction = "PCEReturn";
alert(radWindow.ClientCallBackFunction);
Any thoughts?
Kyle
5 Answers, 1 is accepted
0
Hi Kyle,
To set correctly the property you need to use the set_clientCallBackFunction() method and set the function's name as an argument to it.
I also noticed that you are using the SetTitle() method which is a part of the client-side API of the Classic RadWindow. Please, pay attention to the version of the controls that you use because there are differences in their API. In your case you must set the title by using the set_Title() method.
I send you a sample project which demonstrates how you can configure the RadWindow the way you want.
Sincerely yours,
Svetlina
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
To set correctly the property you need to use the set_clientCallBackFunction() method and set the function's name as an argument to it.
I also noticed that you are using the SetTitle() method which is a part of the client-side API of the Classic RadWindow. Please, pay attention to the version of the controls that you use because there are differences in their API. In your case you must set the title by using the set_Title() method.
I send you a sample project which demonstrates how you can configure the RadWindow the way you want.
Sincerely yours,
Svetlina
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
terrysmith
Top achievements
Rank 1
answered on 24 Apr 2008, 03:56 PM
I had the same problem. I spent several hours tracing this down until I discovered what was going on.
The change from "radWindow.ClientCallBackFunction =" to "radWindow.set_clientCallBackFunction()" is not documented on either the "Changes and Backward Compatibility", "Client-Side Events", nor "Setting client events by using Javascript" pages of the RadWindow for ASP.NET AJAX Q1 2008 help file (or anywhere else I could find).
Thanks for the answer though.
The change from "radWindow.ClientCallBackFunction =" to "radWindow.set_clientCallBackFunction()" is not documented on either the "Changes and Backward Compatibility", "Client-Side Events", nor "Setting client events by using Javascript" pages of the RadWindow for ASP.NET AJAX Q1 2008 help file (or anywhere else I could find).
Thanks for the answer though.
0
Hi terrysmith,
Thank you for noticing this omission in our online documentation, we will update it as soon as possible.
Your points were updated.
Kind regards,
Svetlina
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you for noticing this omission in our online documentation, we will update it as soon as possible.
Your points were updated.
Kind regards,
Svetlina
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
terrysmith
Top achievements
Rank 1
answered on 25 Apr 2008, 07:25 PM
Thank you. Unless I have missed it, the PostBack property is not documented anywhere either. I just ran across it by looking through all the properties on a toolbar button. Up to now I thought I had to catch the Javascript event to cancel a server postback. I think it should have been mentioned on the "RadToolBar Items"->"Buttons Overview" page.
Thanks,
Terry
Thanks,
Terry
0
Hello Terry,
Thank you for the feedback - I logged it and updated your points.
Best wishes,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you for the feedback - I logged it and updated your points.
Best wishes,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center