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

[Solved] Where does my Javascript Go?

1 Answer 366 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 11 Apr 2008, 02:27 PM
Hi,
I am trying to figure out the different usage scenarios for the RadScriptManager.RegisterStartupScript
RadScriptManager.RegisterClientScriptBlock
RadAjaxPanel.ResponseScripts.Add

I cannot seem to find the doc for these methods by drilling down through your documentation.

I have the RadScriptManager and RadAjaxPanel on a page. In event handlers called within the RadAjaxPanel RegisteringStartupScripts was not working (ResponseScripts.Add(...) solved my problem) and I am trying to understand when I should use the RadScriptManager.Register... methods.

Thanks, Andy

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 11 Apr 2008, 03:01 PM
Hi A,

RadScriptManager inherits from ScriptManager and simply adds script combining features to it. To review the methods of the scriptManager, you can refer to the MS AJAX documentation here.
ResponseScript collection belongs to RadAjax controls and not ScriptManager. Basically it should have the same effect as RegisterClientScriptBlock, which on the other hand can be avoided by using RadScriptBlock.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Andy
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or