我正在尝试从 KendoComboBox 中获取所有列表项。
该列表是使用自定义 angularjs 指令构建的:
html
<input id="comboBox" />
sgComboBoxField 指令:
'use strict'; angular.module('sgComponents').directive('sgComboBoxField', ['sgComboBoxService', function(sgComboBoxService) { return { link: function (scope, element, attrs, ctrls) { var dropdownlist = element.find('#comboBox'); dropdownlist.kendoComboBox({ //various options needed to set up the combox (like datasource) obtained from service )}; // tried a breakpoint here in chrome but the items are not visible! } } }]);
我的问题是,一旦将组合框加载到 DOM 上,如何从组合框中获取所有列表项?