C# 如何在Devextreme datagrid上捕获web api返回消息?
在我的Asp.NETMVC项目中,我想知道如何在客户端捕获事件,例如在插入或更新行之后 请参见下面的示例代码:C# 如何在Devextreme datagrid上捕获web api返回消息?,c#,asp.net-mvc,datagrid,devextreme,devexpress-mvc,C#,Asp.net Mvc,Datagrid,Devextreme,Devexpress Mvc,在我的Asp.NETMVC项目中,我想知道如何在客户端捕获事件,例如在插入或更新行之后 请参见下面的示例代码: @(Html.DevExtreme().DataGrid().ID("MyId").DataSource(d => d.WebApi().Controller("MyWebApi").Key("MyTableId") ........ 这里演示了如何使用WebAPI实现CRUD操作。您可以使用下面描述的事件: .OnEditingStart(@<text&
@(Html.DevExtreme().DataGrid().ID("MyId").DataSource(d => d.WebApi().Controller("MyWebApi").Key("MyTableId")
........
这里演示了如何使用WebAPI实现CRUD操作。您可以使用下面描述的事件:
.OnEditingStart(@<text> function(e) { logEvent("EditingStart"); } </text>)
.OnInitNewRow(@<text> function(e) { logEvent("InitNewRow"); } </text>)
.OnRowInserting(@<text> function(e) { logEvent("RowInserting"); } </text>)
.OnRowInserted(@<text> function(e) { logEvent("RowInserted"); } </text>)
.OnRowUpdating(@<text> function(e) { logEvent("RowUpdating"); } </text>)
.OnRowUpdated(@<text> function(e) { logEvent("RowUpdated"); } </text>)
.OnRowRemoving(@<text> function(e) { logEvent("RowRemoving"); } </text>)
.OnRowRemoved(@<text> function(e) { logEvent("RowRemoved"); } </text>)
.OnEditingStart(@function(e){logEvent(“EditingStart”);})
.OnInitNewRow(@function(e){logEvent(“InitNewRow”);})
.OnRowInserting(@function(e){logEvent(“RowInserting”);})
.onrowserted(@function(e){logEvent(“rowserted”);})
.onRowUpdate(@function(e){logEvent(“rowUpdate”);})
.OnRowUpdated(@function(e){logEvent(“RowUpdated”);})
.OnRowRemoving(@function(e){logEvent(“RowRemoving”);})
.OnRowRemoved(@function(e){logEvent(“RowRemoved”);})
你可以看到它在做这个