背景:我正在嘗試處理一個網格,其中一列可以根據網格中的列值具有不同的編輯器。我在 Telerik 網站上找到了一個作業
uj5u.com熱心網友回復:
使用函式來呼叫您的函式而不是模板字串:
{
field: 'editor',
title: 'Editor',
template: function(dataItem) {
return customTemplate(dataItem.type, dataItem.editor);
},
editor: chooseEditor
}
小提琴:https : //dojo.telerik.com/AluziYAc
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/371623.html
標籤:javascript 查询 剑道 剑道格子
上一篇:獲取陣列中的查詢字串值
下一篇:陣列結果列在一個下面?
