Author Topic: How to reduce a item of filter condition in PQGrid 5.2.0  (Read 1953 times)

Hidehiro Ishii

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 44
    • View Profile
How to reduce a item of filter condition in PQGrid 5.2.0
« on: July 28, 2018, 07:21:15 pm »
Hi team,

I am so happy to be released PQGrid 5.2.0.
I have a question of the new function of added filter condition.
I want to reduce a item of filter condition.
(reject items "Greater than","Greater than or equal","Less than","Less than or equal" etc)
Because there are so many items of filter condition,so the pull down menu is so long.
And I want to change a item of filter condition by each columns.
Please let me know how to solve these problems.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to reduce a item of filter condition in PQGrid 5.2.0
« Reply #1 on: July 30, 2018, 11:14:55 am »
At global level, filter conditions are stored in pq.filter.conditions

Filter conditions can be included or excluded on column basis with help of filter.conditionList and filter.conditionExclude options.

https://paramquery.com/pro/api#option-column-filter

Example:

https://paramquery.com/pro/demos/filter_custom

Hidehiro Ishii

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: How to reduce a item of filter condition in PQGrid 5.2.0
« Reply #2 on: July 31, 2018, 01:55:06 pm »
Hi Team,

Thank you for your reply.
It is so useful example for me.
And I have understood how to use the new API.
Please close this case.