Skip to content

Commit 064b775

Browse files
committed
Add columns.filterable.multi support
1 parent 78c0694 commit 064b775

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

api/javascript/ui/grid.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,27 @@ populated at the time the template function is called, if the Grid uses remote b
936936
dataSource: [ { color: "#ff0000", size: 30 }, { color: "#000000", size: 33 }] });
937937
</script>
938938

939+
### columns.filterable.multi `Object` *(default: false)*
940+
941+
Use this options to enable the MultiCheck filtering support for that column.
942+
943+
> If you have enabled the columns.multi option and your Grid uses serverPaging (or ServerOperations(true) if using the MVC wrappers) you need to provide columns.filterable.dataSource. If columns.filterable.dataSource is not provided bad performance.
944+
945+
#### Example - enable checkbox filtering support.
946+
<div id="grid"></div>
947+
<script>
948+
$("#grid").kendoGrid({
949+
columns: [ {
950+
field: "country",
951+
filterable: {
952+
multi:true
953+
}
954+
} ],
955+
filterable: true,
956+
dataSource: [ { country: "BG" }, { country: "USA" } ]
957+
});
958+
</script>
959+
939960
### columns.filterable.dataSource `Object`
940961

941962
The dataSource configuration for the items that will be used when [columns.filterable.multi](#configuration-columns.filterable.multi) is enabled.
@@ -947,8 +968,8 @@ The dataSource configuration for the items that will be used when [columns.filte
947968
columns: [ {
948969
field: "country",
949970
filterable: {
950-
multi:true,
951-
dataSource: [{country: "BG"},{country: "GRM"}, {country: "USA"}]
971+
multi:true,
972+
dataSource: [{country: "BG"},{country: "GRM"}, {country: "USA"}]
952973
}
953974
} ],
954975
filterable: true,

0 commit comments

Comments
 (0)