jQuery UI Widgets › Forums › Grid › Date Filters Do Not Retain Their Selected Dates
Tagged: datagrid for js, date filter, grid, gridview
This topic contains 5 replies, has 3 voices, and was last updated by Main Street James 7 years, 1 month ago.
-
Author
-
When using a filter on a date column I enter a date (or two if I want a range) and the column filters as expected. But when I go back to the filter to change a previously selected date, the date fields in the filter no longer contain the previously selected dates. Also, the previously selected filter criteria – such as ‘equal’, ‘greater than’, etc – is no longer selected. This is not the case when using a text filter on a column.
Basically, the date filter resets to a new filter when selected.
Here is a jsfiddle example. Just filter on the date column, then go back to the date column filter and it has been reset:
http://jsfiddle.net/mLvp78rn/The example above is not mine. I found it in this forum when searching for a resolution to this issue. This issue exists in the jqW grid demo examples as well.
Thanks,
JamesHi James,
Thanks for writing. Unfortunately, workaround is not available.
However, the jQWidgets Team logged a new Grid issue about this behavior: https://github.com/jqwidgets/jQWidgets/issues/63
Best Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.comPeter,
Is there a way for me to access the values entered in the filter so I can store them and populate them when a date filter is requested? Does the filter API support this type of access?Thanks,
JamesIt is possible to customize the DataGrid’s Filter Menu. Example: https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/filtering-menu-custom-widgets.htm?material
Best Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.comWe updated the fiddle: http://jsfiddle.net/mxd6hfgz/2/. It was missing a reference to globalize.js. If it is added, it works.
Best Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.comThank you very much, Peter 🙂
-
AuthorPosts
You must be logged in to reply to this topic.