• Resolved zhangqiqi

    (@zhangqiqi)


    Hi,

    I need to regularly add new columns to my table but I only need column filters for the first 5 columns in the table. I am using the short code below achieve this.

    [table id=214 responsive="collapse" datatables_columnfilterwidgets=true datatables_columnfilterwidgets_exclude_columns=6,7,8/]

    I wonder, instead of specifying what columns I want to exclude from the filter widget, is there a way to simply specify which columns I want to include in the filter widget so that I don’t need to update the code every time I add a new column?

    Thank you

    • This topic was modified 3 years, 4 months ago by zhangqiqi.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I see what you mean, but unfortunately, I’ll have to disappoint you here. The underlying JavaScript code that’s behind this feature, only accepts a list of excluded columns at the moment. Thus, I’m not aware of a possibility to achieve this without extensive custom code modifications. Sorry.

    Regards,
    Tobias

    Thread Starter zhangqiqi

    (@zhangqiqi)

    Thank you for your prompt response. Another question about the filter.

    Is it possible to manually set the order of categories in column filters? The filter now uses alphabetical order. Thank you.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no, sorry, the values in the dropdowns are automatically sorted, from what I know. I can’t see a possibility to set a custom order.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Column filter widget include columns’ is closed to new replies.