How to change the height "Gantt"?

2 posts, 0 answers
  1. Gen
    Gen avatar
    3 posts
    Member since:
    Aug 2014

    Posted 19 Aug 2014 Link to this post

    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 (
    }
  2. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 20 Aug 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top