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

The following code will not run in an ajax panel - how do i?

5 Answers 62 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 14 Nov 2008, 02:17 PM

Hi..
I have an ajax panel with the following code - I want to show a radwindow - but it doesn't work any ideas?
when I remove the ajax panel it works.. thanks

 

 

this.RadAjaxManager.ResponseScripts.Add(@"Sys.Application.add_load(function(){radalert('Zipcode Not Found', 250, 100);})");

 

 

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 14 Nov 2008, 02:21 PM
Hi,

Here is an example:

RadAjaxManager.ResponseScripts.Add("radalert('Zipcode Not Found', 250, 100);");

Regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jon
Top achievements
Rank 1
answered on 14 Nov 2008, 02:29 PM
Hi.. that worked BUT my screen doesn't refresh... when I set the other values.. thanks

 

if (string.IsNullOrEmpty(address.City))

 

{

 

// this.RadAjaxManager.ResponseScripts.Add(@"Sys.Application.add_load(function(){radalert('Zipcode Not Found in USPS Test Server', 300, 100);})");

 

RadAjaxManager.ResponseScripts.Add(

"radalert('Zipcode Not Found in USPS Test Server', 300, 100);");

 

 

// this.RadAjaxManager.ResponseScripts.Add(@"Sys.Application.add_load(function(){radalert('"+ this.txtZIPCODE.Text+"' Not Found', 250, 100);})");

 

 

this.txtZIPCODE.Focus();

 

}

 

else

 

{

 

this.txtCITY.Text = UtilityLibrary.TextUtils.ProperCase(address.City);

 

 

this.cmbSTATE.Text = address.State;

 

}

0
Maria Ilieva
Telerik team
answered on 17 Nov 2008, 02:23 PM
Hello,

Could you please let me know what do you mean by "my screen doesn't refresh... when I set the other values"? Please elaborate a little bit more on the functionality you need to acheive so we could provide accurate solution for your scenario.
Thank you.

All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jon
Top achievements
Rank 1
answered on 17 Nov 2008, 02:29 PM
While the txtCIty Value get updated.
They do not appear until I refresh the screen/  or press f5
thanks
0
Maria Ilieva
Telerik team
answered on 18 Nov 2008, 12:44 PM
Hello Jon The Nerd,

Will it be convenient for you to open a regular support ticket and send us sample runnable project which replicates the described behaviour? Exact steps for reproducing the issue will also be helpful to easily isolate the problem and provide accurate solution.

Kind regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Jon
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jon
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or