我在嵌套的用户控件中有一个RadioButtonList控件。单击其中一个按钮时,我希望使用ajax回发刷新面板。我正在使用telerik RadAjaxManager。问题是列表总是触发一个完整的回发。标记低于
<telerik:RadAjaxManagerProxy runat="server" ID="RadAjaxManagerPRoxy1">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="btnAcceptReject">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="pnlControls" UpdatePanelRenderMode="Inline" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
<asp:RadioButtonList runat="server" ID="btnAcceptReject" RepeatDirection="Horizontal" CssClass="checkboxlist borderless" ValidationGroup="data" AutoPostBack="true" OnSelectedIndexChanged="btnAcceptReject_SelectedIndexChanged">
<asp:ListItem Text="The edition is hereby validated for conformity to standards" Value="0" Selected="True"></asp:ListItem>
<asp:ListItem Text="The edition does not meet standards and still has to be reviewed" Value="1"></asp:ListItem>
</asp:RadioButtonList>
<asp:RequiredFieldValidator ID="vldAcceptReject" ControlToValidate="btnAcceptReject" runat="server" CssClass="text-error" Text="please check an option" ValidationGroup="data"></asp:RequiredFieldValidator>
<asp:Panel runat="server" ID="pnlControls">
我一遍又一遍地检查了我的代码和标记,似乎没有任何遗漏,这应该是开箱即用的!我一直在网上阅读很多关于控制像RadioButtonList和CheckBoxList的问题与ajax回发。有谁知道如何解决这个问题?
答案 0 :(得分:0)
您应该在pnlControls ajax面板中移动单选按钮列表。然后它不应该做回发。