range

Sets range to the widget.

Parameters

range Object (optional)

An Object that have start and end parameters of type Date.

Returns

Object the object with start and end values of the selected view.

Example - set range to the widget

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
  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")
    }
  ]
});
var gantt = $("#gantt").data("kendoGantt");
var range = {
    start: new Date("2014/06/2"),
    end: new Date("2014/06/23")
};
gantt.range(range);
</script>
In this article