Author Topic: dateRangePicker initialization issue on horizontal grid scroll  (Read 1640 times)

applepqgrid

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 26
    • View Profile
dateRangePicker initialization issue on horizontal grid scroll
« on: September 01, 2018, 05:32:41 am »
We are using dateRangePicker inside pqDatePicker to support date range filter.

On horizontal grid scroll, when date coulmn render pqDatePicker initialization happens but dateRangePicker doesn't show up sometimes due to below error.

"Uncaught TypeError: Cannot read property 'is' of undefined" for "se.is(":visible")" in below line of code.
return e(this).off(".datepicker").on("click.datepicker", function(e) {
                se.is(":visible") || s(a.duration)


-Below is the date column filter-
filter: { crules: [{ condition: 'between'}], type: 'textbox', init: pqDatePicker, attr: 'multiple' }

Request you to comment on this issue resolution.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: dateRangePicker initialization issue on horizontal grid scroll
« Reply #1 on: September 03, 2018, 04:27:56 pm »
https://paramquery.com/pro/api#option-column-filter

In most of the cases, datepicker is initialized by grid, so there is no need to init: pqDatePicker

Anyway if it's required then return true in your pqDatePicker function.