ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: queensgambit9 on January 15, 2019, 03:34:56 pm
-
When applying a filter, column using datepicker seems to have defaultDate set to earliest date available currently in grid. Would this be possible to modify to use today's date?
-
datepicker defaultDate option can be set with column.filter.dpOptions
https://paramquery.com/pro/api#option-column-filter
http://api.jqueryui.com/datepicker/#option-defaultDate
dpOptions usage is also shown in this example: https://paramquery.com/pro/demos/filter_custom
-
Thanks, did try (for todays date):
...{ crules: [{ condition: 'between' }], dpOptions: { defaultDate: null } }...
but can't get it to work.
-
Please set { defaultDate: new Date() } instead of null