对于 Kendo UI Grid,可以选择将可过滤设置为行或菜单或两者。我想知道是否可以将某些列设置为行(仅作为行),而其他列显示为菜单(仅作为菜单)。最好不要用css。
示例:我希望字段名称是行过滤器,而年龄是菜单过滤器
<script>
$("#grid").kendoGrid({
dataSource: ...
filterable: {
operators: {
string: {
startswith: "Starts with",
eq: "Exact Client Name",
contains: "contains"
},
number: {
gte: "From",
lte: "Before"
}
},
mode: "row" },
column: [ { field: "ClientName", title: "Client Name", width: 150, type: "string" , attributes: { style: "text-align:left;" }, filterable: { messages: { info: "Show clients that: " }, extra: false} },
{ field: "Month", title: "Month", width: 78, type: "number", attributes: { style: "text-align:center;" …Run Code Online (Sandbox Code Playgroud) kendo-grid ×1