2010-06-24 334 views
2

Telerik Rad Grid中ajax complete事件的名稱是什麼?我試了一下在文檔中,但我得到以下錯誤Telerik:ajax請求完成事件

Parser Error Message: Type 'Telerik.Web.UI.GridClientEvents' does not have a public property named 'OnResponseEnd'. 

Source Error: 

Line 62:  EditMode="EditForms" GridLines="None" Visible="true" OnNeedDataSource="ctlBenefitLimitsGrid_NeedDataSource"> 
Line 63:  <ClientSettings> 
Line 64:   <ClientEvents OnResponseEnd = "ctlBenefitLimitsGrid_RequestEnd"></ClientEvents> 
Line 65:  </ClientSettings> 
Line 66:  <MasterTableView Width="100%" Summary="RadGrid table" AutoGenerateColumns="False" 

回答

3

您可以在JavaScript中指定OnResponseEnd方法運行時的響應完成:

<ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" /> 

編輯: 我的錯,在新版本中,它已被移動。 嘗試將其添加到您的RadAjaxManager或RadAjaxManagerProxy。

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
    <ClientEvents OnResponseEnd="responseEnd" /> 
</telerik:RadAjaxManager> 

http://www.telerik.com/help/aspnet-ajax/ajxonresponseend.html

+0

@埃德B:我嘗試過,但它不工作? – epitka 2010-06-24 19:49:55

+0

檢查我的編輯.. – 2010-06-24 21:44:41

+1

@Ed B:不幸的是,我沒有訪問AjaxManager,只有代理,由於某些原因,根本不公開ClientEvents – epitka 2010-06-25 13:36:18