filterable.operators.numberObject
The texts of the filter operators that are displayed for columns which are bound to number fields.
Omitting an operator will exclude it from the DropDownList with the available operators.
In the following example, only the Equal to... and Not equal to... operators will be displayed in the operators DropDownList.
Example - setting the number operators
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "lastName" },
{ field: "position" },
{ field: "extension" }
],
dataSource: {
data: [
{ id: 1, parentId: null, lastName: "Jackson", position: "CEO", extension: 8241 },
{ id: 2, parentId: 1, lastName: "Weber", position: " VP, Engineering", extension: 8342 }
],
schema: {
model: {
fields: {
extension: { type: "number" }
}
}
}
},
filterable: {
extra: false,
operators: {
number: {
eq: "Equal to...",
neq: "Not equal to..."
}
}
}
});
</script>
filterable.operators.number.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: "Age", type: "number" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Age: 45, parentId: null },
{ id: 2, Name: "Guy Wooten", Age: 35, parentId: 1 }
],
filterable: {
operators: {
number: {
eq: "Equals"
}
}
}
});
</script>
filterable.operators.number.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: "Age", type: "number" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Age: 45, parentId: null },
{ id: 2, Name: "Guy Wooten", Age: 35, parentId: 1 }
],
filterable: {
operators: {
number: {
neq: "Not equal to"
}
}
}
});
</script>
filterable.operators.number.isnullString(default: "Is null")
The text of the isnull filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Age", type: "number" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Age: 45, parentId: null },
{ id: 2, Name: "Guy Wooten", Age: 35, parentId: 1 }
],
filterable: {
operators: {
number: {
isnull: "Is null"
}
}
}
});
</script>
filterable.operators.number.isnotnullString(default: "Is not null")
The text of the isnotnull filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Age", type: "number" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Age: 45, parentId: null },
{ id: 2, Name: "Guy Wooten", Age: 35, parentId: 1 }
],
filterable: {
operators: {
number: {
isnotnull: "Is not null"
}
}
}
});
</script>
filterable.operators.number.gteString(default: "Is greater than or equal to")
The text of the gte (greater than or equal to) filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Age", type: "number" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Age: 45, parentId: null },
{ id: 2, Name: "Guy Wooten", Age: 35, parentId: 1 }
],
filterable: {
operators: {
number: {
gte: "Greater than or equal to"
}
}
}
});
</script>
filterable.operators.number.gtString(default: "Is greater than")
The text of the gt (greater than) filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Age", type: "number" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Age: 45, parentId: null },
{ id: 2, Name: "Guy Wooten", Age: 35, parentId: 1 }
],
filterable: {
operators: {
number: {
gt: "Greater than"
}
}
}
});
</script>
filterable.operators.number.lteString(default: "Is less than or equal to")
The text of the lte (less than or equal to) filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Age", type: "number" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Age: 45, parentId: null },
{ id: 2, Name: "Guy Wooten", Age: 35, parentId: 1 }
],
filterable: {
operators: {
number: {
lte: "Less than or equal to"
}
}
}
});
</script>
filterable.operators.number.ltString(default: "Is less than")
The text of the lt (less than) filter operator.
Example
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "Name" },
{ field: "Age", type: "number" }
],
dataSource: [
{ id: 1, Name: "Daryl Sweeney", Age: 45, parentId: null },
{ id: 2, Name: "Guy Wooten", Age: 35, parentId: 1 }
],
filterable: {
operators: {
number: {
lt: "Less than"
}
}
}
});
</script>