Hi, I have some confusion on the best practices to place the javascript in the page. Whenever, i add a new webform via the 'Add RadControl Scenarios' from the Solution Explorer, it will generate this for me. The question I have is where is the best place for me to place the javascript? Right now, I place it after the //Put your JavaScript code here. However, after looking various examples in your demo and this, http://www.telerik.com/help/aspnet-ajax/ajax-radscriptblock-radcodeblock.html
I am not sure where is the best location to place my javascript. Please advise. <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Scripts> <%--Needed for JavaScript IntelliSense in VS2010--%> <%--For VS2008 replace RadScriptManager with ScriptManager--%> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </telerik:RadScriptManager> <script type="text/javascript"> //Put your JavaScript code here. function ShowRadWindowM() { var wnd = $find("<%=RadWindow4.ClientID %>"); wnd.setUrl("radwindow_MinimizeZone.aspx"); wnd.show(); wnd.maximize(); } </script>