Closed ilune closed 7 years ago
I found the problem, when i call datepicker, i set
options.onSelect = function() { console.log('select', this); };
That overrides event function that can redraw results...
Then I addedd manually ui-datepicker and it's seems to work.
Also found the way to force redraw
var api = $('.jpfilter').data('jplist') api.observer.trigger(api.observer.events.unknownStatusesChanged, [false]);
I just implement jplist and wanted to add a filter with date-picker, all seems to work good:
When i selected one date, the input field update its value, but the date popin select doesn't close, and the data are not reload with new selection... I have to click to another field like the text controller for the date filter will be taken into account.
Is there a way to force redraw ?
I'm not sur if there is not a conflict with another datetime picker libraries, when I remove them, I have one error when daterange picker still here (library from here http://www.daterangepicker.com/ ):
TypeError: c.params.$prev.datepicker is not a function ...mat").toString()};c.params.defaultPrev=c.params.$prev.datepicker("getDate")
My code:
Also it will be great if we can filter with datetime picker library, i've tried something like this (deactivated for the error upper):
But still have the problem to reload data grid...