1
我已經用data-columns
屬性聲明性地定義了一個劍道網格。某些列有"filterable": ...
屬性定義,有些則沒有。沒有定義的那些仍然顯示過濾器文本框中的所有選項「等於」,「以...開始」等...Kendo Grid:如何禁用數據列定義中的「可過濾」?
我想在這些列上沒有任何過濾器文本框對此我沒有定義屬性。
如何顯式刪除過濾器文本框?
我網的定義:
<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>
非常感謝我認爲這是簡單的,但無法找到它。我曾嘗試過「無」無濟於事。 –