在 kendo ui 树列表中,headerTemplate 仅在层次结构的最低列中适用于多列。不在根列中。
样本:
columns: [{
field: "FirstName", title: "First Name", width: 180
}, {
title: "Personal Info",
/* headerTemplate: "Personal Info Template", */ /* do not works */
columns: [{
field: "LastName", title: "Last Name", width: 120,
}, {
title: "Location",
columns: [{
field: "City", width: 140,
headerTemplate: "City Template", /* works */
}, {
field: "Country", width: 140
}]
}]
}]
示例链接
如何将按钮/html 放置在多列标题的根列中?