Skip to main content

DataGridColumnBuilder<T>.AllowHeaderFiltering(JS) Method

Specifies whether the header filter can be used to filter data by this column. Applies only if headerFilter.visible is true. By default, inherits the value of the allowFiltering property. Mirrors the client-side allowHeaderFiltering option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public DataGridColumnBuilder<T> AllowHeaderFiltering(
    JS value
)

Parameters

Name Type Description
value JS

A JavaScript expression that specifies the option value.

Returns

Type Description
DataGridColumnBuilder<T>

A reference to this instance after the method is called.

Remarks

Use the new JS() expression to set the option’s value.

<script>
    var myValue = ...;
</script>

@(Html.DevExtreme().DataGrid()
    .Columns(columns => {
        columns.Add().AllowHeaderFiltering(new JS("myValue"));
    })
)
See Also