gpt4 book ai didi

javascript - 剑道网格 : How to disable "filterable" on data-column definition?

转载 作者:行者123 更新时间:2023-11-30 11:51:22 25 4
gpt4 key购买 nike

我已经使用 data-columns 属性以声明方式定义了一个剑道网格。有些列定义了 "filterable": ... 属性,有些则没有。那些没有定义的仍然显示过滤器文本框,其中包含所有选项“等于”、“开始于”……等。

我想在这些我没有定义属性的列上完全没有过滤器文本框。

如何显式删除过滤器文本框?

我的网格定义:

<div id="Checkpoints">
<div data-filterable='{ "mode": "row" }'
data-role='grid'
data-sortable='true'
data-bind='source: reportData.CheckpointExceptions'
data-pageable='{ "pageSize": 10 }'


data-toolbar='["excel"]'
data-excel='{ "fileName": "CheckpointExceptionExport.xlsx", "allPages": "true" }'
data-excelExport='e -> excelExportHelper(e)'

data-columns='[
{
"field": "checkpoint_name",
"title": "Checkpoint",
"filterable": { "cell": { "operator": "contains"}}},
{
"field": "location_name",
"title": "Location",
"filterable": { "cell": { "operator": "contains"}}
},
{
"field": "patrolled_by",
"title": "Patrolled By",
"filterable": { "cell": { "operator": "contains"}}
},
{
"field": "geotag",
"title": "GeoTag",
"template": kendo.template($("#geotagTemplate").html())
},
{
"field": "geofence",
"title": "GeoFence",
"template": kendo.template($("#geofenceTemplate").html())
},
{
"field": "completed",
"title": "Completed",
"template": kendo.template($("#completedTemplate").html())
},
{
"field": "gps",
"title": "GPS",
"template": kendo.template($("#gpsTemplate").html())
},
{
"title": "",
"template": kendo.template($("#viewLinkTemplate").html())
}
]'>
</div>

最佳答案

为您不想过滤的字段声明filterable 属性,然后将其显式设置为false,如this jsFiddle 中所做的那样。 .

关于javascript - 剑道网格 : How to disable "filterable" on data-column definition?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39357769/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com