This is a migrated thread and some comments may be shown as answers.

How to change the height "Gantt"?

1 Answer 163 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Gen
Top achievements
Rank 1
Gen asked on 19 Aug 2014, 05:12 PM
I want you to have two buttons "hide" and "resize". How do I do this? 

Sorry for my english.


<div id="example">   
  <div ng-app="KendoDemo" ng-controller="MyCtrl">  
  <button ng-click="onButton1Click()">resize</button>
  <div id="gantt" kendo-gantt k-options="ganttOptions"></div>
  </div>   
</div>

....
$scope.onButton1Click = function() {
$scope.ganttOptions.height = 900; // ??? not work (
}

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 20 Aug 2014, 07:50 AM
Hi,

You have to include the k-rebind attribute as well, like so:
<div kendo-gantt k-options="ganttOptions" k-rebind="ganttOptions"></div>

And here is a working example:
http://dojo.telerik.com/OCuL/4

Regards,
Bozhidar
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Gantt
Asked by
Gen
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or