Unfilter table when datepicker-controlled input field is cleared

Unfilter table when datepicker-controlled input field is cleared

reiger101reiger101 Posts: 1Questions: 0Answers: 0
edited January 2014 in DataTables 1.9
I am following the DataTables individual column filtering example to filter a DataTable by a single column of dates. The difference between the example and my application is I am using jquery's datepicker to populate the textbox input field with a date value. When the page loads and the date textbox is empty, I see all rows of the table as expected. When I select dates using the datepicker the input field is populated as expected and the table filters perfectly. However, when I clear the date input field using the datepicker's Clear button the table does not unfilter and show all rows as I would expect. Does anyone have an example of using the query datepicker to filter (and hopefully unfilter) a DataTable? Thanks.

Replies

  • koosvdkolkkoosvdkolk Posts: 169Questions: 0Answers: 0
    I am not aware of a 'clear' button in jQuery datepicker?

    Does it trigger an event? If yes, bind to that event and pass it on to your datatable instance.
This discussion has been closed.