2
我使用的是Kendo UI Web Grid,而不是服务器包装器之一。我只在网格中显示几个字段。其余的字段显示在创建或编辑弹出窗口中。对于这个弹出我使用的模板:Kendo UI Web Grid - Popup_Editor模板 - Dropdown
<script id="popup_editor" type="text/x-kendo-template">
<div class="k-edit-label">
<label for="Title">Title</label>
</div>
<div class="k-edit-field">
<input type="text" class="k-input k-textbox" name="Title" data-bind="value:Title" required>
</div>
</script>
,然后我从电网调用它:
editable: {
mode: "popup",
template: $("#popup_editor").html(),
confirmation: "Are you sure?"
}
这个伟大的工程的输入框。不过,我的表中有一个外键列。我想在下拉列表中显示外键表中的所有选项,并根据我的表中的值选择正确的选项。我已经搜索了很多,但一直未能找到答案。
任何帮助将不胜感激。
我有相同的情况。但我想做级联组合框。你有什么想法如何做到这一点? –