Skip to main content

BootstrapGridViewBuilderBase<T>.Routes(Action<GridViewRouteCollectionBuilder>) Method

Specifies a collection of routes for Grid View‘s updates or performing other Controller-side operations on demand.

Namespace: DevExpress.AspNetCore.Bootstrap

Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll

Declaration

public T Routes(
    Action<GridViewRouteCollectionBuilder> config
)

Parameters

Name Type Description
config Action<GridViewRouteCollectionBuilder>

An Action that configures the GridViewRouteCollectionBuilder‘s functionality.

Returns

Type Description
T

A reference to this instance after the operation is completed.

Remarks

IMPORTANT

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

$1 Grid View provides you with three main routing types:

  • updating the control markup;
  • implementing the CRUD (create, update and delete) functionality;
  • implementing a custom server-side logic.

The example below demonstrates how to implement a custom server-side logic using the Routes method.

@(Html.DevExpress()
    .BootstrapButton("groupByCountryButton")
    .Text("Group by Country column")
    .ClientSideEvents(events => events.Click("onGroupByCountryButtonClick")))

@Html.Partial("GridViewPartial", Model)
See Also