ASP.NET MVC Controls | ComponentOne
In This Topic
    FilterCondition Class
    In This Topic
    File
    wijmo.grid.filter.js
    Module
    wijmo.grid.filter

    Defines a filter condition.

    This class is used by the FlexGridFilter class; you will rarely have to use it directly.

    Constructor

    Properties

    Methods

    Constructor

    constructor

    constructor(filter?: ConditionFilter): FilterCondition
    

    Initializes a new instance of the FilterCondition class.

    Parameters
    Optional

    The ConditionFilter that owns this FilterCondition.

    Returns
    FilterCondition

    Properties

    isActive

    Gets a value that indicates whether the condition is active.

    Type
    boolean

    operator

    Gets or sets the operator used by this FilterCondition.

    Type
    Operator

    value

    Gets or sets the value used by this FilterCondition.

    Type
    any

    Methods

    apply

    apply(value: any, dateOnly?: boolean, timeOnly?: boolean): boolean
    

    Returns a value that determines whether the given value passes this FilterCondition.

    Parameters
    • value: any

      The value to test.

    • dateOnly: boolean
    Optional

    Whether to disregard the time part of **Date** values.

    Whether to disregard the date part of **Date** values.

    Returns
    boolean

    clear

    clear(): void
    

    Clears the condition.

    Returns
    void