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

[Solved] Client side scripts not working in Rad Controls ASP.Net Ajax

1 Answer 97 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Meenakshi Nagalingam
Top achievements
Rank 1
Meenakshi Nagalingam asked on 14 Aug 2009, 06:04 AM
Hi,

While upgrading telerik controls from Rad Controls for ASP.NET (Q3 2007 release), to Rad Controls ASP.Net Ajax (Q2 2009 release), the existing  client side scripts are not executing:

Sample code is:
System.Text.StringBuilder sb = new System.Text.StringBuilder(); 
sb.Append("<script language='javascript'>"); 
sb.Append("scroll(0, 200);"); 
sb.Append("</script>"); 
Page.ClientScript.RegisterStartupScript(this.GetType(), "scroll", sb, false); 
 

While upgrading the telerik controls, the existing script codes are not working!. i also got code from telerik to execute javascript using RadAjaxManager as follows:

RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("Sys.Application.add_load(function(){scroll(0, 200);})"); 

But that too doesn't helped me out. Please give me a solution for this.

Thanks

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 14 Aug 2009, 07:37 AM
Hello Meenakshi Nagalingam,

You can execute scroll() method directly Sys.Application.add_load will add this for execution on application load however the application is already loaded!

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
Meenakshi Nagalingam
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or