我有一个Web应用程序,当用户在我的一个页面上进行选择时,它使用RadAjaxManager来填充RadComboBox控件.这在大多数情况下都能正常工作,但是大约有10%的时间AJAX调用似乎触发但没有值加载到目标RadComboBox中.如果浏览器关闭并再次访问该页面,则此行为似乎仍在继续,但几分钟后,另一个浏览器刷新一切正常.
以下是启动AJAX请求的RadComboBox的Ajax设置:
<telerik:AjaxSetting AjaxControlID="rcmbMarket">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rcmbApplicationField"
LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="ApplicationFieldSource"
LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
Run Code Online (Sandbox Code Playgroud)
这是启动和traget组合框的标记:
<asp:TableRow HorizontalAlign="Center" ID="ProductRow3">
<asp:TableCell Width="25%" HorizontalAlign="Left" ID="MarketLabelCell">
<asp:Label ID="lblMarket" runat="server" Text="Market: "></asp:Label>
<asp:RequiredFieldValidator ID="vldMarket" runat="server" ControlToValidate="rcmbMarket"
ErrorMessage="*" ForeColor="Red" SetFocusOnError="true" ValidationGroup="grpMain"></asp:RequiredFieldValidator>
</asp:TableCell>
<asp:TableCell Width="25%" HorizontalAlign="Left" ID="MarketDDLCell">
<telerik:RadComboBox ID="rcmbMarket" runat="server" AllowCustomText="false" DataSourceID="MarketSource" AutoPostBack="true" CausesValidation="false"
DataTextField="MarketDesc" DataValueField="pkMarketID" AppendDataBoundItems="true" OnSelectedIndexChanged="Market_Check">
<Items>
<telerik:RadComboBoxItem Text="" Value="" />
</Items>
</telerik:RadComboBox>
<asp:SqlDataSource ID="MarketSource" runat="server" ConnectionString="<%$ ConnectionStrings:QuoteProdConn %>" SelectCommand="SELECT pkMarketID, MarketDesc FROM Data.Market WHERE Active = 'True' ORDER BY MarketDesc ASC"></asp:SqlDataSource>
</asp:TableCell>
<asp:TableCell …Run Code Online (Sandbox Code Playgroud)