1 Star 0 Fork 0

XFly-Studio / Grid.Blazor

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Grouping.md 972 Bytes
Copy Edit Web IDE Raw Blame History

GridBlazor for ASP.NET Core MVC

Grouping

Index

You can enable grouping for all columns of a grid using the Groupable method for both GridClient and GridServer objects:

  • razor page

        var client = new GridClient<Order>(q => orderService.GetOrdersGridRows(columns, q), query, false, "ordersGrid", Columns, locale)
            .Groupable()
  • service method

        var server = new GridServer<Order>(repository.GetAll(), Request.Query, true, "ordersGrid", columns, 10)
            .Groupable()

You can drag the column title and drop it on the sorting area. You can add multiple columns at the same time and select if sorting is ascending or descending column by column. The grid items will be grouped by the values of the selected columns.

This is an example of a table of items using grouping:

<- Sorting | Selecting row ->

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/fan0217/Grid.Blazor.git
git@gitee.com:fan0217/Grid.Blazor.git
fan0217
Grid.Blazor
Grid.Blazor
master

Search