[英]Kendo UI: Grid with custom edit template, DatePicker won't bind when using API to set value
[英]Kendo MVC Grid set / change edit template at runtime
我有一個Kendo MVC網格
@(Html.Kendo().Grid<...>() .... .Editable(ed => ed.Mode(GridEditMode.PopUp).TemplateName("Editor_Name_A").Window(w => { w.Title(""); w.Width(700); }).DisplayDeleteConfirmation(false)) .DataSource(dataSource => dataSource ...
我還有另外兩個簡單的按鈕: button_A
和button_B
在文檔中的其他位置,我想做的是,當用戶單擊button_A
,網格將使用模板Editor_Name_A
,而如果用戶單擊button_B
,則網格將使用模板Editor_Name_B
就像有條件地動態設置/更改網格編輯模板一樣,有什么方法可以實現嗎?
您可能必須在頁面本身中使用一些javascript,然后嘗試以下方法:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.