0

嗨,有人可以帮我如何从后面的代码中调用(或刷新)控件吗?

目前,当我单击我的 btnUpdate 按钮时它正在工作。当我按下另一个按钮时,我还想刷新相同的用户控件(例如:btnrefresh)。

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnUpdate">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
             </UpdatedControls>
         </telerik:AjaxSetting>
     </AjaxSettings>
     <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
</telerik:RadAjaxManager>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" />

<asp:Panel ID="Panel1" runat="server" Width="100%">
    <uc:EmpEnrollment runat="server" ID="EmpEnrollment" />
</asp:Panel>
4

1 回答 1

1

只需在下面AjaxSetting为您添加另一个:btnrefreshAjaxSettings

<AjaxSettings>
   <telerik:AjaxSetting AjaxControlID="btnUpdate">
      <UpdatedControls>
         <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
      </UpdatedControls>
   </telerik:AjaxSetting>
   <telerik:AjaxSetting AjaxControlID="btnrefresh">
      <UpdatedControls>
         <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
      </UpdatedControls>
   </telerik:AjaxSetting>
</AjaxSettings>
于 2013-05-20T07:51:00.690 回答