Filter Form Checkbox Field Configuration

#1

I cant seem to get my checkbox filter to work correctly in the filter form associated with my KendoGrid.

{
    "id": "dataSource.fieldNameA",
    "label": "Field Name A",
    "component": "ControlGroup",
    "field": {
        "component": "field.Checkbox",
        "id": "dataSource.fieldNameA",
        "name": "dataSource.fieldNameA"
    }
}

Am I missing anything in the field?

0 Likes

#2

Use a configuration like this:

    "id": "dataSource.fieldNameA",
    "label": "Field Name A",
    "component": "ControlGroup",
    "field": {
        "component": "field.Checkbox",
        "id": "dataSource.fieldNameA",
        "name": "dataSource.fieldNameA",
       "trueValue": "dataSource.fieldNameA == true",
       "falseValue": "dataSource.fieldNameA == false",
       "checked": "false"
    }
}
0 Likes