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?"
}
這個偉大的工程的輸入框。不過,我的表中有一個外鍵列。我想在下拉列表中顯示外鍵表中的所有選項,並根據我的表中的值選擇正確的選項。我已經搜索了很多,但一直未能找到答案。
任何幫助將不勝感激。
我有相同的情況。但我想做級聯組合框。你有什麼想法如何做到這一點? –