Skip to main content
All docs
V24.2

GanttColumnHeaderFilterBuilder.DataSource(String) Method

Specifies the header filter's data source. Mirrors the client-side dataSource option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public GanttColumnHeaderFilterBuilder DataSource(
    string jsFunc
)

Parameters

Name Type Description
jsFunc String

The option value.

Returns

Type Description
GanttColumnHeaderFilterBuilder

A reference to this instance after the method is called.

Remarks

This method allows you to bind a header filter to data that a JavaScript function returns. Function arguments are described in the client API reference.

@(Html.DevExtreme().Gantt()
    .Columns(columns => {
        columns.Add().HeaderFilter(filter => filter
            .DataSource("function(options) { return [ ]; }")
        );
    })
)
See Also