ControllerDataSourceOptionsBuilder.OnModifying(RazorBlock) Method
A function that is executed before a data item is added, updated, or removed.
Namespace: DevExtreme.AspNet.Mvc.Builders.DataSources
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public ControllerDataSourceOptionsBuilder OnModifying(
RazorBlock jsFunc
)
Parameters
Name | Type | Description |
---|---|---|
jsFunc | RazorBlock | The Razor |
Returns
Type | Description |
---|---|
ControllerDataSourceOptionsBuilder | A reference to this instance after the method is called. |
Remarks
Use this method to specify a JavaScript handler for the client-side modifying
event.
@(Html.DevExtreme().DataGrid()
.DataSource(d => d.Mvc()
.OnModifying(@<text>
function(e) {
// Handler code
}
</text>)
)
)
Refer to API Controllers for more information.
See Also