angularjs - Kendo UI + Angular - v2014.2.903 vs v2014.3.1119 JSFiddle Issues -


i working on upgrading 1 of angular/kendo ui projects v2014.2.903 v2014.3.1119. have encountered few instances v2014.3.1119 breaks functionality worked fine in v2014.2.903. decided create couple jsfiddles illustrate issues, unfortunately, jsfiddle points v2014.2.903 doesn't seem recognize kendo ui.

v2014.3.1119 jsfiddle (this works) ... http://jsfiddle.net/lejuan5150/w0711rdg/

v2014.2.903 jsfiddle (this doesn't work) ... http://jsfiddle.net/lejuan5150/4svqnaz6/

both contain same code , configuration aside version of kendo ui referencing. here code:

html:

<div>  <div data-ng-controller="personcontroller">          <div          kendo-grid="persongrid"          k-options="persongridoptions"          k-ng-delay="persongridoptions">         </div>      <br />     first name combo box:      <select          kendo-combo-box="firstnamecombobox"         k-options="firstnamecomboboxoptions"         k-ng-delay="firstnamecomboboxoptions"          k-ng-model="selectedperson.firstname"             ></select>              <br />     last name combo box:              <select                      kendo-drop-down-list="lastnamedropdownlist"         k-options="lastnamedropdownlistoptions"         k-ng-delay="lastnamedropdownlistoptions"          k-ng-model="selectedperson.lastname"      ></select>          </div> 

javascript:

var app = angular .module("app", [      "kendo.directives" ]);  app.controller("personcontroller", [     "$scope",     personcontroller ]);  function personcontroller(     $scope ){     init();      function init(){          var persondata = [{             firstname: "joe",             lastname: "smith",             status: "active"         },{             firstname: "john",             lastname: "smith",             status: "active"         },{             firstname: "travis",             lastname: "smith",             status: "expired"         }];          $scope.persondatasource = new kendo.data.datasource({             data: persondata         });                    $scope.firstnamesdata = [{            id: "joe",            firstname: "joe"         },{             id: "george",             firstname: "george"         },{             id: "john",             firstname: "john"         },{             id: "travis",             firstname: "travis"         }];             $scope.lastnamesdata = [{             id: "jones",             lastname: "jones"         },{             id: "smith",             lastname: "smith"         }];                   bindpersongrid();         bindfirstnamecombobox();           bindlastnamedropdownlist();       }      function bindpersongrid(){          $scope.persongridoptions = {             datasource: $scope.persondatasource,             selectable: "row",             databound: onpersongriddatabound,             change: onpersongridrowselected                     }             }      function onpersongriddatabound(){          var grid = this;         var firstrow = grid.element.find("tbody tr:first");         grid.select(firstrow);     }      function onpersongridrowselected(          event     ){          var grid = event.sender;         $scope.selectedperson = grid.dataitem(grid.select());                $scope.$digest();     }      function bindfirstnamecombobox(){          $scope.firstnamecomboboxoptions = {             datasource: $scope.firstnamesdata,             datatextfield: "firstname",             datavaluefield: "id"         };     }          function bindlastnamedropdownlist(){          $scope.lastnamedropdownlistoptions = {             datasource: $scope.lastnamesdata,             datatextfield: "lastname",             datavaluefield: "id"         };     }      } 

does know why v2014.2.903 jsfiddle doesn't work?

i found issue. kendo v2014.2.903 doesn't k-ng-delay when using hard coded array of javascript objects.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -