Skip to main content
All docs
V24.2

GanttColumnHeaderFilterBuilder.DataSourceOptions(Action<DataSourceOptionsBuilder>) Method

Gives access to methods that mirror client-side data source options.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public GanttColumnHeaderFilterBuilder DataSourceOptions(
    Action<DataSourceOptionsBuilder> configurator
)

Parameters

Name Type Description
configurator Action<DataSourceOptionsBuilder>

A function that configures data source options.

Returns

Type Description
GanttColumnHeaderFilterBuilder

A reference to this instance after the method is called.

Remarks

To configure data source options, use a lambda expression.

@(Html.DevExtreme().Gantt()
    .Columns(columns => {
        columns.Add().HeaderFilter(filter => filter
            .DataSource(...)
            .DataSourceOptions(options => options
                .Sort(s => s.AddSorting("MyProp"))
            )
        );
    })
)
See Also