Author Topic: Checkbox filter value is always 'On'  (Read 2313 times)

emphasys

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 4
    • View Profile
Checkbox filter value is always 'On'
« 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":""}]}

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Checkbox filter value is always 'On'
« Reply #1 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.
« Last Edit: August 25, 2017, 11:21:15 pm by paramquery »

emphasys

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Checkbox filter value is always 'On'
« Reply #2 on: August 25, 2017, 11:57:16 pm »
I am using 3.4.1.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Checkbox filter value is always 'On'
« Reply #3 on: August 28, 2017, 11:44:45 am »
Please share a jsfiddle to reproduce the issue.