New to Telerik UI for ASP.NET Core? Download free 30-day trial

DataSourceAggregateDescriptorFactory

Methods

Add(System.Linq.Expressions.Expression)

Specifies member on which aggregates to be calculated.

Parameters

expression - System.Linq.Expressions.Expression<Func>

The Aggregates set for the DataSource

Example


            .DataSource(dataSource => dataSource
                    .Custom()
                    .Aggregates(aggregates =>
                    {
                        aggregates.Add(p => p.UnitsInStock).Min();
                    })
            )

Add(System.String,System.Type)

Specifies member on which aggregates to be calculated.

Parameters

memberName - System.String
memberType - System.Type
In this article
Not finding the help you need?