2012-06-29 28 views
0

我有兩個UserControls - UserControl1.ascx和UserControl2.ascx如何使用Telerik從UserControl1刷新UserControl2?

我在UserControl1.ascx RadGrid1。 我在UserControl2.ascx中有一個窗體。

當我更新UserControl1.ascx中的RadGrid1然後我想刷新UserControl2.ascx中的窗體中的數據。

如何使用Telerik從UserControl1刷新UserControl2中的數據?

回答

0

將兩個用戶RadAjaxManager內部控制是這樣的:你在網頁上

<uc1:UsreControl1 ID="UserControl1" runat="server"/> 

<uc2:UsreControl2 ID="UserControl2" runat="server"/> 

寄存器EM後

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
     <AjaxSettings> 
      <telerik:AjaxSetting AjaxControlID=" UserControl1"> 
       <UpdatedControls> 
        <telerik:AjaxUpdatedControl ControlID=" UserControl2"></telerik:AjaxUpdatedControl> 
        <telerik:AjaxUpdatedControl ControlID=" UserControl1"></telerik:AjaxUpdatedControl> 
        </UpdatedControls> 
      </telerik:AjaxSetting> 
     </AjaxSettings> 
    </telerik:RadAjaxManager> 

及以下的地方你的用戶控件希望它會爲ü工作,因爲它在我的項目中爲我工作。

相關問題