view
Gets or sets the current Gantt view.
Parameters
type String
(optional)
The view type to select.
Returns
kendo.ui.GanttView
the current Gantt view.
Example - set the current 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");
gantt.view("month");
</script>