ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: emphasys on August 25, 2017, 07:10:17 pm

Title: Checkbox filter value is always 'On'
Post by: emphasys on August 25, 2017, 07:10:17 pm
   Hi, I am having problems with the checkbox filtering. When I try to filter the checkbox by checking, unchecking and leaving it blank. The ajax call always sends out this Filter column value as "On". What can I do to actually send the result "True", "False", whatever the third value is called?

Column:
title: "Fee", dataType: "bool", dataIndx: "setfee", resizable: true, type: 'checkbox',
filter: { type: "checkbox", subtype: 'triple', condition: "equal", listeners: ['click'] }

Ajax call for this column:
pq_filter:{"mode":"AND","data":[{"dataIndx":"setfee","value":"on","condition":"equal","dataType":"bool","cbFn":""}]}
Title: Re: Checkbox filter value is always 'On'
Post by: paramvir on August 25, 2017, 11:18:07 pm
Which version you have been using.

It works fine as can be seen in this example ( Paid column ): https://paramquery.com/pro/demos/filter_header

It sends "true", "false" or doesn't send any filter for the boolean column.
Title: Re: Checkbox filter value is always 'On'
Post by: emphasys on August 25, 2017, 11:57:16 pm
I am using 3.4.1.
Title: Re: Checkbox filter value is always 'On'
Post by: paramvir on August 28, 2017, 11:44:45 am
Please share a jsfiddle to reproduce the issue.