2

Telerik Rad Grid 中的 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"
4

1 回答 1

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

于 2010-06-24T19:34:36.800 回答