operators.stringObject

The texts of the filter operators displayed for columns bound to string fields.

Omitting an operator will exclude it from the DropDownList with the available operators.

Example

<div id="filtermenu"></div>
<script>
$("#filtermenu").kendoFilterMenu({
    dataSource: [
        { name: "John", category: "Manager" },
        { name: "Jane", category: "Developer" }
    ],
    field: "name",
    operators: {
        string: {
            eq: "Is exactly",
            neq: "Is not",
            contains: "Includes",
            startswith: "Begins with"
        }
    }
});
</script>

operators.string.eqString(default: "Is equal to")

The text of the "equal" filter operator.

Example

<div id="filtermenu"></div>
<script>
$("#filtermenu").kendoFilterMenu({
    dataSource: [
        { name: "John", category: "Manager" },
        { name: "Jane", category: "Developer" }
    ],
    field: "name",
    operators: {
        string: {
            eq: "Matches exactly"
        }
    }
});
</script>

operators.string.neqString(default: "Is not equal to")

The text of the "not equal" filter operator.

Example

<div id="filtermenu"></div>
<script>
$("#filtermenu").kendoFilterMenu({
    dataSource: [
        { name: "John", category: "Manager" },
        { name: "Jane", category: "Developer" }
    ],
    field: "name",
    operators: {
        string: {
            neq: "Does not match"
        }
    }
});
</script>

operators.string.isnullString(default: "Is null")

The text of the "isnull" filter operator.

Example

<div id="filtermenu"></div>
<script>
$("#filtermenu").kendoFilterMenu({
    dataSource: [
        { name: "John", category: "Manager" },
        { name: "Jane", category: null }
    ],
    field: "category",
    operators: {
        string: {
            isnull: "Has no value"
        }
    }
});
</script>

operators.string.isnotnullString(default: "Is not null")

The text of the "isnotnull" filter operator.

Example

<div id="filtermenu"></div>
<script>
$("#filtermenu").kendoFilterMenu({
    dataSource: [
        { name: "John", category: "Manager" },
        { name: "Jane", category: null }
    ],
    field: "category",
    operators: {
        string: {
            isnotnull: "Has a value"
        }
    }
});
</script>

operators.string.isemptyString(default: "Is empty")

The text of the "isempty" filter operator.

Example

<div id="filtermenu"></div>
<script>
$("#filtermenu").kendoFilterMenu({
    dataSource: [
        { name: "John", description: "Manager" },
        { name: "Jane", description: "" }
    ],
    field: "description",
    operators: {
        string: {
            isempty: "Is blank"
        }
    }
});
</script>

operators.string.isnotemptyString(default: "Is not empty")

The text of the "isnotempty" filter operator.

Example

<div id="filtermenu"></div>
<script>
$("#filtermenu").kendoFilterMenu({
    dataSource: [
        { name: "John", description: "Manager" },
        { name: "Jane", description: "" }
    ],
    field: "description",
    operators: {
        string: {
            isnotempty: "Is not blank"
        }
    }
});
</script>

operators.string.startswithString(default: "Starts with")

The text of the "starts with" filter operator.

Example

<div id="filtermenu"></div>
<script>
$("#filtermenu").kendoFilterMenu({
    dataSource: [
        { name: "John", title: "Manager" },
        { name: "Jane", title: "Developer" }
    ],
    field: "title",
    operators: {
        string: {
            startswith: "Begins with"
        }
    }
});
</script>

operators.string.containsString(default: "Contains")

The text of the "contains" filter operator.

Example

<div id="filtermenu"></div>
<script>
$("#filtermenu").kendoFilterMenu({
    dataSource: [
        { name: "John", title: "Senior Manager" },
        { name: "Jane", title: "Lead Developer" }
    ],
    field: "title",
    operators: {
        string: {
            contains: "Includes"
        }
    }
});
</script>

operators.string.doesnotcontainString(default: "Does not contain")

The text of the "does not contain" filter operator.

Example

<div id="filtermenu"></div>
<script>
$("#filtermenu").kendoFilterMenu({
    dataSource: [
        { name: "John", title: "Senior Manager" },
        { name: "Jane", title: "Lead Developer" }
    ],
    field: "title",
    operators: {
        string: {
            doesnotcontain: "Excludes"
        }
    }
});
</script>

operators.string.endswithString(default: "Ends with")

The text of the "ends with" filter operator.

Example

<div id="filtermenu"></div>
<script>
$("#filtermenu").kendoFilterMenu({
    dataSource: [
        { name: "John", email: "john@company.com" },
        { name: "Jane", email: "jane@example.org" }
    ],
    field: "email",
    operators: {
        string: {
            endswith: "Finishes with"
        }
    }
});
</script>

operators.string.isnulloremptyString(default: "Has no value")

The text of the "isnullorempty" filter operator.

Example

<div id="filtermenu"></div>
<script>
$("#filtermenu").kendoFilterMenu({
    dataSource: [
        { name: "John", notes: "Manager" },
        { name: "Jane", notes: "" },
        { name: "Bob", notes: null }
    ],
    field: "notes",
    operators: {
        string: {
            isnullorempty: "Is blank or null"
        }
    }
});
</script>

operators.string.isnotnulloremptyString(default: "Has value")

The text of the "isnotnullorempty" filter operator.

Example

<div id="filtermenu"></div>
<script>
$("#filtermenu").kendoFilterMenu({
    dataSource: [
        { name: "John", notes: "Manager" },
        { name: "Jane", notes: "" },
        { name: "Bob", notes: null }
    ],
    field: "notes",
    operators: {
        string: {
            isnotnullorempty: "Has content"
        }
    }
});
</script>