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

Range

methods

Sets range to the widget.

Returns:Object

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

<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>
Not finding the help you need?
Contact Support