FilterBuilderCustomOperationBuilder.DataTypes(IEnumerable<FilterBuilderFieldDataType>) Method

Mirrors the client-side dataTypes option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public FilterBuilderCustomOperationBuilder DataTypes(
    IEnumerable<FilterBuilderFieldDataType> value
)

Parameters

Name Type Description
value IEnumerable<FilterBuilderFieldDataType>

The option value.

Returns

Type Description
FilterBuilderCustomOperationBuilder

A reference to this instance after the method is called.

Remarks

Use the following notation to set the option’s value:

@(Html.DevExtreme().FilterBuilder()
    .CustomOperations(customOperations => {
        customOperations.Add().DataTypes(new[] { FilterBuilderFieldDataType.Boolean });
    })
)
See Also