filterable.messages Object

The text messages displayed in the filter menu. Use it to customize or localize the filter menu messages.

Example - customize filter menu messages

<div id="treelist"></div>
<script>
  $("#treelist").kendoTreeList({
    columns: [
      { field: "lastName" },
      { field: "position" },
      { field: "extension" }
    ],
    dataSource: [
      { id: 1, parentId: null, lastName: "Jackson", position: "CEO", extension: 8241 },
      { id: 2, parentId: 1, lastName: "Weber", position: "  VP, Engineering", extension: 8342 }
    ],
    filterable: {
      messages: {
        and: "and",
        or: "or",
        filter: "Apply filter",
        clear: "Clear filter"
      }
    }
  });
</script>

filterable.messages.and String (default: "And")

The text of the option which represents the "and" logical operation.

Example - set the "and" message

<div id="treelist"></div>
<script>
  $("#treelist").kendoTreeList({
    columns: [
      { field: "lastName" },
      { field: "position" },
      { field: "extension" }
    ],
    dataSource: [
      { id: 1, parentId: null, lastName: "Jackson", position: "CEO", extension: 8241 },
      { id: 2, parentId: 1, lastName: "Weber", position: "  VP, Engineering", extension: 8342 }
    ],
    filterable: {
      messages: {
        and: "and"
      }
    }
  });
</script>

filterable.messages.clear String (default: "Clear")

The text of the button which clears the filter.

Example - set the "clear" message

<div id="treelist"></div>
<script>
  $("#treelist").kendoTreeList({
    columns: [
      { field: "lastName" },
      { field: "position" },
      { field: "extension" }
    ],
    dataSource: [
      { id: 1, parentId: null, lastName: "Jackson", position: "CEO", extension: 8241 },
      { id: 2, parentId: 1, lastName: "Weber", position: "  VP, Engineering", extension: 8342 }
    ],
    filterable: {
      messages: {
        clear: "Clear filter"
      }
    }
  });
</script>

filterable.messages.filter String (default: "Filter")

The text of the button which applies the filter.

Example - set the "filter" message

<div id="treelist"></div>
<script>
  $("#treelist").kendoTreeList({
    columns: [
      { field: "lastName" },
      { field: "position" },
      { field: "extension" }
    ],
    dataSource: [
      { id: 1, parentId: null, lastName: "Jackson", position: "CEO", extension: 8241 },
      { id: 2, parentId: 1, lastName: "Weber", position: "  VP, Engineering", extension: 8342 }
    ],
    filterable: {
      messages: {
        filter: "Apply filter"
      }
    }
  });
</script>

filterable.messages.info String (default: "Show items with value that: ")

The text of the information message on the top of the filter menu.

Example - set the "info" message

<div id="treelist"></div>
<script>
  $("#treelist").kendoTreeList({
    columns: [
      { field: "lastName" },
      { field: "position" },
      { field: "extension" }
    ],
    dataSource: [
      { id: 1, parentId: null, lastName: "Jackson", position: "CEO", extension: 8241 },
      { id: 2, parentId: 1, lastName: "Weber", position: "  VP, Engineering", extension: 8342 }
    ],
    filterable: {
      messages: {
        info: "Filter by: "
      }
    }
  });
</script>

filterable.messages.title String (default: "Show items with value that: ")

The text rendered for the title attribute of the filter menu form.

filterable.messages.isFalse String (default: "is false")

The text of the radio button for false values. Displayed when filtering Boolean fields.

Example - set the "isFalse" message

<div id="treelist"></div>
<script>
  $("#treelist").kendoTreeList({
    columns: [
      { field: "lastName" },
      { field: "position" },
      { field: "available" }
    ],
    dataSource: {
      data: [
        { id: 1, parentId: null, lastName: "Jackson", position: "CEO", available: true },
        { id: 2, parentId: 1, lastName: "Weber", position: "    VP, Engineering", available: false }
      ],
      schema: {
        model: {
          fields: {
            available: {type: "boolean"}
          }
        }
      }
    },
    filterable: {
      messages: {
        isFalse: "False"
      }
    }
  });
</script>

filterable.messages.isTrue String (default: "is true")

The text of the radio button for true values. Displayed when filtering Boolean fields.

Example - set the "isTrue" message

<div id="treelist"></div>
<script>
  $("#treelist").kendoTreeList({
    columns: [
      { field: "lastName" },
      { field: "position" },
      { field: "available" }
    ],
    dataSource: {
      data: [
        { id: 1, parentId: null, lastName: "Jackson", position: "CEO", available: true },
        { id: 2, parentId: 1, lastName: "Weber", position: "    VP, Engineering", available: false }
      ],
      schema: {
        model: {
          fields: {
            available: {type: "boolean"}
          }
        }
      }
    },
    filterable: {
      messages: {
        isTrue: "True"
      }
    }
  });
</script>

filterable.messages.or String (default: "Or")

The text of the option which represents the "or" logical operation.

Example - set the "or" message

<div id="treelist"></div>
<script>
  $("#treelist").kendoTreeList({
    columns: [
      { field: "lastName" },
      { field: "position" },
      { field: "extension" }
    ],
    dataSource: [
      { id: 1, parentId: null, lastName: "Jackson", position: "CEO", extension: 8241 },
      { id: 2, parentId: 1, lastName: "Weber", position: "  VP, Engineering", extension: 8342 }
    ],
    filterable: true,
    filterable: {
      messages: {
        or: "or"
      }
    }
  });
</script>
In this article
Not finding the help you need?