I have a drop down list that gets populated with a CompanyID and CompanyName:
HTML:
<select id="MerchantList" kendo-drop-down-list="MerchantList" ng-model="MerchantID" k-options="populateCompanies" class="form-control" required validationmessage="Please select a company"></select>
AngularJS:
//populate the kendo drop down control
$scope.populateCompanies = {
dataSource: merchantDataSource,
dataTextField: "CompanyName",
dataValueField: "MerchantID",
//optionLabel: "Please Select Your Company",
filter: "contains",
minLength: 3
};
I also have a user record that contains the CompanyName: $scope.user.CompanyName
How do I select the CompanyName in the drop down list?
Many thanks,
Jayme