<asp:ScriptManager ID="ScriptManager1" runat="server" />Hi folks
Can anybody point me in the right direction, please? I have an ASP.NET content page that loads a master page, and I need each to be linked to their own separate external javascript files. If I use the RadScriptManager on the content page (as I have already been doing successfully for existing content page code), it doesn't load the external javascript file from the master page. Therefore I decided I needed to include the RadScriptManager in the master page, and link to it from the content page with a standard ScriptManagerProxy control. The problem is: the content page won't load with the ASP.NET code I am trying to use, with the RadScriptManager in the master page, and the ScriptManagerProxy in the content page. I just get:
That error reads to me as though the proxy control can't find the RadScriptManager in the master page, or doesn't recognize it as a replacement for the standard ASP ScriptManager.
Could anyone clarify, is this configuration I am trying to use actually supported? If so, where exactly in the markup of the two pages should the RadScriptManager and ScriptManagerProxy declarations go? Or do they need to be added programatically for this to work? If someone could point me to a working example, that would be great - the RadControls documentation just says, 'Yes it works', but I can't find an example anywhere.
Regards
Dim dupOptionTop As RadButton = New RadButton()dupOptionTop.GroupName = dgr.Cells(lnColumn).TextdupOptionTop.ID = dupFile.FILEIDdupOptionTop.AutoPostBack = FalsedupOptionTop.ButtonType = RadButtonType.ToggleButtondupOptionTop.ToggleType = ButtonToggleType.RadiodupOptionTop.ForeColor = Color.BrownDim dupOption As RadButtonToggleState = New RadButtonToggleState()dupOptionTop.Text = dupFile.FILEIDdupOptionTop.ToggleStates.Add(dupOption)dupOptionTop.ToggleStates.Add(dupOption)dgr.Cells(lnMsgColumn + 1).Controls.Add(dupOptionTop)Dim _options = New List(Of RadButton)ViewState.Add("options", _options)An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
<asp:Button ID="LoadReportButton" runat="server" Text="Load Report" OnClick="LoadReportButton_Click" /><script type="text/javascript"> function entryAdded(sender, eventArgs) { alert("An item with Text='" + eventArgs.get_entry().get_text() + "' has just been selected."); } Public Sub SetSkin(ByVal target As Control, ByVal skinName As String) If TypeOf target Is ISkinnableControl Then Dim skinnableTarget As ISkinnableControl = Nothing skinnableTarget = DirectCast(target, ISkinnableControl) skinnableTarget.Skin = skinName Else For Each child As Control In target.Controls SetSkin(child, skinName) Next End If End Sub
However this sets the microsoft scripts to be loaded from: ajax.microsoft.com
<
telerik:RadScriptManager ID="sm1" runat="server" EnablePartialRendering="true" EnableCdn
<Scripts>
Name="MicrosoftAjax.js" Path="https://ajax.aspnetcdn.com/ajax/4.0/1/MicrosoftAjax.js"
</Scripts
</telerik:RadScriptManager>
<telerik:RadComboBox ID="uxRCBCustomerName" runat="server" Width="200px" EnableCheckAllItemsCheckBox="true" DropDownWidth="500px" height="120px" DataTextField="HPDCustomerName" DataValueField="HPDCustomerID" AllowCustomText="true" CheckBoxes="true" DataKeyField="employerGroupID" EmptyMessage="No Promo Found" AutoPostBack="true" CheckedItemsTexts="DisplayAllInInput" AppendDataBoundItems="true" OnItemChecked="uxRCBCustomerName_ItemChecked" EnableViewState="true" MarkFirstMatch="true" CausesValidation="false" > <ItemTemplate> <ul> <li class="col1" > <%# DataBinder.Eval(Container, "Text")%> </li> <li class="col2"> <%# If(DataBinder.Eval(Container.DataItem, "hasJOnly"), "J", "")%><%# If(DataBinder.Eval(Container.DataItem, "hasJM"), "JM", "")%><%# If(DataBinder.Eval(Container.DataItem, "hasJOnly")=False and DataBinder.Eval(Container.DataItem, "hasJM")=false, "N/A", "")%></td> </li> </ul> </ItemTemplate> </telerik:RadComboBox>