filterable.operators.stringObject
The texts of the filter operators that are displayed for columns whcih are bound to string fields.
Omitting an operator will exclude it from the DropDownList with the available operators.
In the following example, only the Contains... and Starts with... operators will be displayed in the DropDownList.
Example - setting the string operators
<div id="treeList"></div>
<script>
$("#treeList").kendoTreeList({
columns: [
"lastName",
"position"
],
filterable: {
extra: false,
operators: {
string: {
contains: "Contains...",
startswith: "Starts with..."
}
}
},
dataSource: {
data: [
{ id: 1, parentId: null, lastName: "Jackson", position: "CEO" },
{ id: 2, parentId: 1, lastName: "Weber", position: " VP, Engineering" }
]
}
});
</script>
filterable.operators.string.eqString(default: "Is equal to")
The text of the eq (equal to) filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Position" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Position: "CEO", parentId: null },
{ id: 2, Name: "Guy Wooten", Position: "Chief Technical Officer", parentId: 1 }
],
filterable: {
operators: {
string: {
eq: "Equals"
}
}
}
});
</script>
filterable.operators.string.neqString(default: "Is not equal to")
The text of the ne (not equal to) filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Position" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Position: "CEO", parentId: null },
{ id: 2, Name: "Guy Wooten", Position: "Chief Technical Officer", parentId: 1 }
],
filterable: {
operators: {
string: {
neq: "Not equal to"
}
}
}
});
</script>
filterable.operators.string.isnullString(default: "Is null")
The text of the isnull filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Position" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Position: "CEO", parentId: null },
{ id: 2, Name: "Guy Wooten", Position: "Chief Technical Officer", parentId: 1 }
],
filterable: {
operators: {
string: {
isnull: "Is null"
}
}
}
});
</script>
filterable.operators.string.isnotnullString(default: "Is not null")
The text of the isnotnull filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Position" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Position: "CEO", parentId: null },
{ id: 2, Name: "Guy Wooten", Position: "Chief Technical Officer", parentId: 1 }
],
filterable: {
operators: {
string: {
isnotnull: "Is not null"
}
}
}
});
</script>
filterable.operators.string.isemptyString(default: "Is empty")
The text of the isempty filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Position" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Position: "CEO", parentId: null },
{ id: 2, Name: "Guy Wooten", Position: "Chief Technical Officer", parentId: 1 }
],
filterable: {
operators: {
string: {
isempty: "Is empty"
}
}
}
});
</script>
filterable.operators.string.isnotemptyString(default: "Is not empty")
The text of the isnotempty filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Position" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Position: "CEO", parentId: null },
{ id: 2, Name: "Guy Wooten", Position: "Chief Technical Officer", parentId: 1 }
],
filterable: {
operators: {
string: {
isnotempty: "Is not empty"
}
}
}
});
</script>
filterable.operators.string.startswithString(default: "Starts with")
The text of the startswith filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Position" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Position: "CEO", parentId: null },
{ id: 2, Name: "Guy Wooten", Position: "Chief Technical Officer", parentId: 1 }
],
filterable: {
operators: {
string: {
startswith: "Starts with"
}
}
}
});
</script>
filterable.operators.string.containsString(default: "Contains")
The text of the contains filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Position" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Position: "CEO", parentId: null },
{ id: 2, Name: "Guy Wooten", Position: "Chief Technical Officer", parentId: 1 }
],
filterable: {
operators: {
string: {
contains: "Contains"
}
}
}
});
</script>
filterable.operators.string.doesnotcontainString(default: "Does not contain")
The text of the doesnotcontain filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Position" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Position: "CEO", parentId: null },
{ id: 2, Name: "Guy Wooten", Position: "Chief Technical Officer", parentId: 1 }
],
filterable: {
operators: {
string: {
doesnotcontain: "Does not contain"
}
}
}
});
</script>
filterable.operators.string.endswithString(default: "Ends with")
The text of the endswith filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Position" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Position: "CEO", parentId: null },
{ id: 2, Name: "Guy Wooten", Position: "Chief Technical Officer", parentId: 1 }
],
filterable: {
operators: {
string: {
endswith: "Ends with"
}
}
}
});
</script>