Skip to main content

PivotGridExtension.GetLINQDataObject(PivotGridSettings, EventHandler<LinqServerModeDataSourceSelectEventArgs>) Method

Generates a chart data source from data when Pivot Grid operates in server mode using a LINQ provider.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public static object GetLINQDataObject(
    PivotGridSettings pivotGridSettings,
    EventHandler<LinqServerModeDataSourceSelectEventArgs> selectingMethod
)

Parameters

Name Type Description
pivotGridSettings PivotGridSettings

A PivotGridSettings object that specifies pivot grid settings defining how to generate a chart data source.

selectingMethod EventHandler<LinqServerModeDataSourceSelectEventArgs>

A method to which selection logic is delegated.

Returns

Type Description
Object

A chart data source.

Remarks

If the PivotGrid extension operates in server mode using a LINQ provider, use the static GetLINQDataObject method in the controller to create a model for a Chart extension and pass it to the corresponding view. The GetLINQDataObject method internally creates a PivotGrid extension based on the provided settings, binds it to the specified data source and returns a chart data source provided by the created Pivot Grid.

If the PivotGrid extension operates in server mode using Entity Framework, use the PivotGridExtension.GetEFDataObject method. To create a chart data source from regular data, use the PivotGridExtension.GetDataObject method. To create a chart data source from OLAP data, use another overload of the PivotGridExtension.GetDataObject method that takes an olapConnectionString parameter.

See Also