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

Request: RadScriptBlock RenderAt

1 Answer 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 15 Dec 2010, 08:47 PM
Can you add a property to the RadScriptBlock such that at render time we can specify WHERE the script tag renders?

I'd like to send my scripts to the bottom of the page on Render...

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 21 Dec 2010, 10:29 AM
Hi Steve,

You can use RadScriptManager.RegisterStartUpScript which will place the scripts at the bottom of the form. More information you could find on the following links:
http://forums.asp.net/p/1125438/1771458.aspx
http://www.west-wind.com/weblog/posts/154797.aspx

Additionally the RadCodeBlock and RadScriptBlock are used to allow server and client script to work well together with AJAX updates. However if you render the scripts from the server you do not need to render a server scripts within "<%= %>"  tags on the client, you have directly access to the server controls and could get theirs ClientIDs and send them to the client with RegisterStartUpScript.

Kind regards,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
General Discussions
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Radoslav
Telerik team
Share this question
or