• Resolved kevmar10

    (@kevmar10)


    I am having some issues with filters. I have installed the row filter extension as well as column filter widgets. My table has a date column that i would like to default to CURRENT DAY as well as having the option for the user to select future dates. With both of these installed the custom filter widget for that date column is grayed out. I am sure i am missing something, but wondering if there is a way to do this. Shortcode I am using is below:

    [table id=6 filter_date=”today” filter_date_columns=”1″ cache_table_output=false datatables_fixedheader=top datatables_columnfilterwidgets=true datatables_columnfilterwidgets_exclude_columns=4,5,6,7,8 /]

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Kevin,

    thanks for your question, and sorry for the trouble.

    I see what you mean. Unfortunately, I’ll have to disappoint you here.
    The two Extension (Row Filtering by Date and ColumnFilterWidgets) are fundamentally very different. The first one works only on the PHP level on the server and it filters out unwanted row before they are sent to the browser. Due to this, DataTables and the ColumnFilterWidgets Extension, which are based on JavaScript running in the browser, do never see these rows and can therefore not use them for any filtering. 🙁
    Now, there might still be a small chance there: It seems that you are filtering for “today”. If you set that to “future”, the table should at least contain all (future) rows, so that the “Presale Date” filter should not be grayed out. It would still not apply an automatic filtering for the current day.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Date Filters’ is closed to new replies.