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

Calling the callback function from the popup

3 Answers 256 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ricardo
Top achievements
Rank 1
Ricardo asked on 05 Nov 2007, 03:22 PM
I was using this line on the popup code (ASP) on the old controls. Now its not working. I get a message telling me that CallBack is not defined. Is there another way to pass parameters to the callback function now ?

Code:
string myCallBackScript = "GetRadWindow().CallBack('" + myParametersString + "');";
                this.ClientScript.RegisterClientScriptBlock(this.GetType(), "CallBackFunction", myCallBackScript, true);

Thanks.

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 07 Nov 2007, 03:38 PM
Hi Ricardo,

Here is the correct syntax in RadWindow "Prometheus":

GetRadWindow()._invokeDialogCallBackFunction('" + myParametersString + "')

For convenience I've attached to this thread a small sample that shows how to achieve this with RadWindow "Prometheus".

Please note however that we do not recommend to call the CallBackFunction this way. The recommended approach is to pass the needed argument in the close() method.



Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Kyle
Top achievements
Rank 1
answered on 27 Dec 2007, 12:10 PM

Georgi

The example that ships with the Prometheus controls still uses the old method signature.  This is not apparent in the online examples because it employs the RadWindow.close method to provide the return.

 

Kyle

0
Georgi Tunev
Telerik team
answered on 27 Dec 2007, 12:23 PM
Thank you for noticing this Kyle,

We will fix the example for the next service pack which will appear in the first couple of weeks of the new year.

Your points were updated.




Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Ricardo
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Kyle
Top achievements
Rank 1
Share this question
or