0
我對我的一個網格列使用dropDownList。我嘗試maually選擇項目的數據加載後:劍道DropDownList - 如何手動選擇一個項目?
columns: [
{
field: "SomeName", title: "Name",
editor: function (container, options) {
$scope.options = {
dataSource: someSource,
dataTextField: "Name",
dataValueField: "ID",
dataBound: function (e) {
e.sender.select(2);
}
}
var editor = $('<input kendo-drop-down-list k-options="options" required data-bind="value:' + options.field + '"/>')
.appendTo(container);
}
}]
,但沒有happend,服務器returnd的數據是:
[{"ID":2,"Name":"abc"}]