jQWidgets Forums

jQuery UI Widgets Forums Grid Filter for Blank Dates Using Filter Row

This topic contains 3 replies, has 3 voices, and was last updated by  toby 8 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Filter for Blank Dates Using Filter Row #91903

    philipstratford
    Participant

    In the example on this page the Order Date column allows for sophisticated date filtering, including “Greater Than” and “Less Than”. It also allows filtering of null values.

    Using the Filter Row, it seems that this level of sophistication is not possible for date filters. In the example given for a Filter Row the only way to filter dates is by a range or by a single date.

    How can I use a Filter Row but still allow the user to filter on blank dates, or dates before a single specified date (or even after certain specified date)?


    Hristo
    Participant

    Hello philipstratford,

    You could create a custom menu like in this demo.
    Also, you could add an additional field and set custom logic for filtering.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com


    philipstratford
    Participant

    Thanks for your reply. As far as I can see, a custom menu is not compatible with a filter row, so it does not meet my requirements. I understand that I can add a control outside of the grid to do the filtering, which it seems is probably the only solution, but this is not as tidy as being able to do the filtering using the grid’s filters.

    Perhaps for future development you could consider giving the filter row feature parity with the filters available when the filter row is not enabled.


    toby
    Participant

    The following spec appears to work.

    { text: 'Last Login', 
       datafield: 'last_login', 
       filtertype: 'date', cellsformat: 'd',
       filtercondition: 'greater_than_or_equal'
    },
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.