Edit this page

columns.filterable.itemTemplate Function

Allows customization on the logic that renders the checkboxes when using checkbox filtering.

Example - provide custom DataSource for the FilterMultiCheck filtering.

<div id="grid"></div>
        columns: [ {
            field: "country",
            filterable: {
                itemTemplate: function(e) {
                    return "<span><label><span>#= data.country|| data.all #</span><input type='checkbox' name='" + e.field + "' value='#= data.country#'/></label></span>"
        filterable: true,
        dataSource: [ { country: "BG" }, { country: "USA" } ]
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article