ControllerDataSourceOptionsBuilder.OnPush(RazorBlock) Method
In This Article
A function that is executed before changes are pushed.
Namespace: DevExtreme.AspNet.Mvc.Builders.DataSources
Assembly: DevExtreme.AspNet.Core.dll
#Declaration
C#
public ControllerDataSourceOptionsBuilder OnPush(
RazorBlock jsFunc
)
#Parameters
Name | Type | Description |
---|---|---|
js |
Razor |
The Razor |
#Returns
Type | Description |
---|---|
Controller |
A reference to this instance after the method is called. |
#Remarks
Use this method to specify a JavaScript handler for the client-side push
event.
@(Html.DevExtreme().DataGrid()
.DataSource(d => d.Mvc()
.OnPush(@<text>
function(e) {
// Handler code
}
</text>)
)
)
Refer to API Controllers for more information.
See Also