Author Topic: Multi word filtering on same column  (Read 2754 times)

JUNZHONG

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 16
    • View Profile
Multi word filtering on same column
« on: May 20, 2016, 10:50:32 pm »
Hello,
With 2.x, do you have a sample of how to do multi word local filtering in same column.

Thanks

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Multi word filtering on same column
« Reply #1 on: May 23, 2016, 10:53:52 am »
Apply range condition to Shipping region column in this example: http://paramquery.com/pro/demos24/filter_header_local

JUNZHONG

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Multi word filtering on same column
« Reply #2 on: May 23, 2016, 09:08:55 pm »
I see this example for dropdown filter. How do I apply range on textbox filter?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Multi word filtering on same column
« Reply #3 on: May 24, 2016, 10:24:00 am »
Range condition expects an array. Multi select dropdownlist has value of array type which is compatible with range condition.

Multi word filtering with textbox could be done with regular expression i.e., 'regexp' condition.

Code: [Select]
filter: {
type: 'textbox',
condition: 'regexp',
listeners: ['change']
}
« Last Edit: May 24, 2016, 10:31:52 am by paramquery »