javascript - Set the combobox default value before binding -


how set selected value of kendo combobox if upon initializing , before databound. tried attach in databound event model set undefined or null after databound. code @ databound

// set defaul value here $scope.$on("kendorendered", function (event, widget) {      $scope.gender = 2; });  databound: function ()      {                           console.log($scope.gender); // $scope.gender empty         this.value(2); // 2 here female                 } 

there fiddle testing click here

thanks in advance


Comments

Popular posts from this blog

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

linear regression - Trying to get confidence/prediction intervals with `predict.lm` in R, but I keep getting an error regarding my dichotomous variable -