Hi,
I have created a kendo-drop-down-list in angularjs. I called a web service for records. Suppose i got around 15 array object as in the response but kendo drop down list bind only 10 records. If i search from the filter then i can see respective data. but not visible all records in drop down list.
Please have a look with code as well. Let me know what is the issue.
<select id="CARRIER_NAME" class="form-control" kendo-drop-down-list k-options="carrierOptions" name="carrierName" ng-model="test.carrierName"></select>
<script id="noDataTemplate" class="noDataTemplate" type="text/x-kendo-tmpl">
<div> No data found. Do you want to add new item - '#: instance.filterInput.val() #' ? {{someAngularFunction()}}
</div>
<br />
<button class="k-button add-new-item-btn" ng-click="addNew('#: instance.element[0].id #', '#: instance.filterInput.val() #')">Add new item</button>
</script>
CallWebServiceFactory.getDropDownData(reqData).then(function Success(response) {
if(response.isSuccess){
$scope.carrierData = response.data;
$scope.carrierOptions = {
filter: "startswith",
dataSource: $scope.carrierData,
dataTextField: "name",
dataValueField: "id",
noDataTemplate: $(".noDataTemplate").html(),
index: -1
};
}
}, function(error) {
console.log(error);
});
Thanks,
Lokesh Pareek