Author Topic: filter single dataIndex column  (Read 2211 times)

adham80

  • Newbie
  • *
  • Posts: 11
    • View Profile
filter single dataIndex column
« on: October 16, 2019, 03:38:25 pm »
hi

i have a dialog and user could add up to 3 conditions [so he can use AND | OR conditions], please see below as example

how could i filter single column , by the below conditions: i.e.
 great > 200 AND equals 400 OR equals 500

as i could not use MODE property , since it's accept only one parameter  "AND", "OR"

crules: Array(3)
0: {condition: "great", value: "200"}
1: {condition: "equal", value: "400"}
2: {condition: "equal", value: "500"}

dataIndx: "1"
mode: "AND" ///  missing the OR for the last condition [ not sure how should i do that.]
« Last Edit: October 16, 2019, 03:43:59 pm by adham80 »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6113
    • View Profile
Re: filter single dataIndex column
« Reply #1 on: October 16, 2019, 03:48:32 pm »
Last 2 conditions can be combined into a single range condition.

mode: "AND"

crules: Array(2)
0: {condition: "great", value: "200"}
1: {condition: "range", value: [400, 500]}