ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: orlando_acevedo on July 18, 2017, 10:41:24 pm

Title: value2 in filtering
Post by: orlando_acevedo 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.
Title: Re: value2 in filtering
Post by: paramvir 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;
     }
}]