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

Javascript Not Called Inside RadAjaxManager_Ajax Request

2 Answers 85 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Darren Nicholl
Top achievements
Rank 1
Darren Nicholl asked on 04 Jul 2011, 03:18 PM
We have a Click Event that calls

RadAjaxManager1.ResponseScripts.Add(

"btnBankingAlertClick()");

This opens a radwindow as below

function

btnBankingAlertClick() {

var oWnd = radopen("Dialogs/Alert.aspx?ftn=6", "GenericDialogWindow");

}

 

In ClientClose we pick up the argument and call

 

if(arg.res) AjaxPostback('EndCollection:');

In RadAjaxManager_AjaxRequest a method is called and as part of that the following lines are called
 

RadAjaxManager1.Alert("Collection information inserted into banking sucessfully");

RadAjaxManager1.ResponseScripts.Add("btnBankingAlertDoneClick()");

 

When debugging i can see ths code is hit but the alert and the function are not called.

Please help!!

2 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 07 Jul 2011, 08:43 AM
Hi Darren,

Can you confirm that after the ajax request you do not have any javascript errors on the page? Also, make sure you have not set the RestoreOriginalRenderDelegate property of the RadAjaxManager to false.

Kind regards,
Iana
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Darren Nicholl
Top achievements
Rank 1
answered on 08 Jul 2011, 12:20 PM
there was a page redirect after the javascript call, this was stopping the popup from appearing!
Tags
Ajax
Asked by
Darren Nicholl
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Darren Nicholl
Top achievements
Rank 1
Share this question
or