Author Topic: value2 in filtering  (Read 1609 times)

orlando_acevedo

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 27
    • View Profile
value2 in filtering
« on: July 18, 2017, 10:41:24 pm »
For ranges, how do I get value2?
Specifically, I am filtering based on range on a date field (using pqDatePicker).

Thank you again.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: value2 in filtering
« Reply #1 on: July 19, 2017, 12:39:26 pm »
value2 is applicable only when condition is between, it's commonly used for dates, which means date beginning from  value to value2.

Here is the example of between condition used in date filtering:  https://paramquery.com/pro/demos/filter_header_local

value2 is available as ui property inside a custom filter listener.

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

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

Code: [Select]
listeners: [{ 'change': function (evt, ui) {
        var value = ui.value, value2 = ui.value2;
     }
}]