GridView::FILTER_TIME #21

pavlinter opened this Issue Apr 21, 2014 · 2 comments


None yet

2 participants


When set GridView::FILTER_TIME, page reload (infinite loop)

                'attribute' => 'end_time',
                'filterWidgetOptions' => [
                    'pluginOptions' => [
                        'showMeridian' => false,
                        'minuteStep' => 30,


The problem as I checked occurs because of the following:

  1. the base timepicker jquery plugin actually triggers an input update/change event on INIT
  2. the above in turn triggers the Grid Filter change event to refresh the page and then the step number 1 is again called and thus this goes into an infinite loop.

This needs some change in the core bootstrap-timepicker plugin where it MUST NOT TRIGGER a change event on INIT. There is an issue recorded for this as well. Will need to wait till the plugin author would rectify this. I will wait for this and if it takes time, will figure out to fork and correct this. Till then I suggest NOT to use the TimePicker as a filter for your grid and use other alternatives.

@kartik-v kartik-v added the wontfix label May 15, 2014

Marking temporarily as won't fix... because the plugin author is not committed on this change yet.

@kartik-v kartik-v closed this May 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment