Skip to main content

FilterBuilderCustomOperationBuilder.HasValue(Boolean) Method

Specifies whether the operation can have a value. If it can, the editor is displayed. Mirrors the client-side hasValue option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public FilterBuilderCustomOperationBuilder HasValue(
    bool value
)

Parameters

Name Type Description
value Boolean

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().HasValue(true);
    })
)
See Also