Hi. I have been struggling with a DropDownList that has an initial value from a controller attached to ng-model property but I cannot make the k-ng-model to be initially set based on the ng-model value.
The datasource is an object array, ng-model corresponds to a numeric value and the k-ng-model is an object selected from the first array.
The only way I could make it working is triggering a change event after dataBound and cascade event (I added a button in the plnkr link in order to do this) or listening to the second cascade event and update the property manually.
I'm including to my plnkr example: https://plnkr.co/edit/BjCEQ25nuQMMirST
1) Is there a non-hacky or better way to do this? Am I missing something?
2) During the testing, an additional question came up: Why is the cascade event called twice?
<select kendo-drop-down-list id="document-type" k-options="dropOptions" ng-model="user.documentTypeId" k-ng-model="user.documentType" class="glow"></select>
In my project the initial values come from an API that I can't modify its response, so I only have the key/value and I would like to get description/name at init in order to be used as a label content and validations.
Any help would be really appreciated.