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
Totals.md 1.04 KB
Copy Edit Web IDE Raw Blame History

GridBlazor for ASP.NET Core MVC

Totals

Index

You can enable the totals option for each column of your grid.

You can enable searching for each columns of a grid using the Sum, Average, Max and/or Min methods for the Column object:

    Columns.Add(o => o.Freight).Titled("Freight").Sum(true).Average(true);
  • Sum method works only for number columns
  • Average method works only for number columns
  • Max method works for number, date-time and text columns
  • Min method works for number, date-time and text columns

Methods

Method Parameter Description Example
Sum enable bool to enable sum calculation on column Sum(true)
Average enable bool to enable average calculation on column Average(true)
Max enable bool to enable maximum calculation on column Max(true)
Min enable bool to enable minimum calculation on column Min(true)

<- Custom columns | Sorting ->

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