New to Kendo UI for jQuery? Start a free 30-day trial

Columns.filterable

configuration

If set to true and if filtering is enabled for the entire Gantt, a filter menu will be displayed for this column. If set to false, the filter menu will not be displayed. By default, a filter menu is displayed for all columns when filtering is enabled through the filterable option. Can be set to a JavaScript object which represents the filter menu configuration.

columns.filterable

Boolean|Object

Default: true

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
  filterable: true,
  dataSource: [
    {
      id: 1,
      orderId: 0,
      parentId: null,
      title: "Task1",
      start: new Date("2014/6/17 9:00"),
      end: new Date("2014/6/17 11:00")
    },
    {
      id: 2,
      orderId: 1,
      parentId: null,
      title: "Task2",
      start: new Date("2014/6/17 12:00"),
      end: new Date("2014/6/17 14:00")
    }
  ],
  dependencies: [
    {
      predecessorId: 1,
      successorId: 2,
      type: 1
    }
  ],
  columns: [{
    field: "title",
    filterable: false
  }, "start", "end"]
});
</script>

columns.filterable.ui

String|Function

The role data attribute of the widget that is used in the filter menu, or a JavaScript function which initializes that widget.

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
  filterable: true,
  dataSource: [
    {
      id: 1,
      orderId: 0,
      parentId: null,
      title: "Task1",
      start: new Date("2014/6/17 9:00"),
      end: new Date("2014/6/17 11:00")
    },
    {
      id: 2,
      orderId: 1,
      parentId: null,
      title: "Task2",
      start: new Date("2014/6/17 12:00"),
      end: new Date("2014/6/17 14:00")
    }
  ],
  dependencies: [
    {
      predecessorId: 1,
      successorId: 2,
      type: 1
    }
  ],
  columns: [{
    field: "title"
  }, {
    field: "start",
    filterable: {
      ui: "datepicker" // use Kendo UI DatePicker
    }
  }, {
    field: "end"
  }]
});
</script>
<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
  filterable: true,
  dataSource: [
    {
      id: 1,
      orderId: 0,
      parentId: null,
      title: "Task1",
      start: new Date("2014/6/17 9:00"),
      end: new Date("2014/6/17 11:00")
    },
    {
      id: 2,
      orderId: 1,
      parentId: null,
      title: "Task2",
      start: new Date("2014/6/17 12:00"),
      end: new Date("2014/6/17 14:00")
    }
  ],
  dependencies: [
    {
      predecessorId: 1,
      successorId: 2,
      type: 1
    }
  ],
  columns: [{
    field: "title"
  }, {
    field: "start",
    filterable: {
      ui: function(element) {
        element.kendoDatePicker(); // initialize a Kendo UI DatePicker
      }
    }
  }, {
    field: "end"
  }]
});
</script>