• Resolved amanfre

    (@amanfre)


    Hi Tobias,

    Am using a the column filter widgets in a table (view link https://bit.ly/2KQd2ic).

    I want the filter for the ‘Industry’ column to show at the top so I have excluded the columns but industry still doesnt seem to show up.

    Can you help?

    The shortcode I have in place is:

    [table id=1 hide_columns=”1,2,6,7,8,9,10,11,14″
    row_order=random responsive=”scroll” dataTables_paginate=true use_datatables=true datatables_columnfilterwidgets=true datatables_columnfilterwidgets_exclude_columns= 1,2,6,7,8,9,10,11,13,14
    datatables_sort=false
    datatables_paginate_entries=10
    filter=”Yes” filter_columns=14 /]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I’m not really sure what you mean, and unfortunately, I could not check it. Your link only gives me a 404 Not found error.

    Regards,
    Tobias

    Thread Starter amanfre

    (@amanfre)

    Yes bit difficult to understand if you cant see the page. Try the page now it will show you what im talking about. The industry filter widget is not showing at the top

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    I’m still not sure that I get it. If you want Industry to have a drop down, you can’t exclude column 2 in the datatables_columnfilterwidgets_exclude_columns parameter, as “Industry” is column 2 of the visible table.

    Regards,
    Tobias

    Thread Starter amanfre

    (@amanfre)

    Yes you are right, I removed 2 from the exclude column parameter but the industry drop down still doesn’t show

    Here is the shortcode im using:

    [table id=1 hide_columns=”1,2,6,7,8,9,10,11,14″
    row_order=random responsive=”scroll” dataTables_paginate=true use_datatables=true datatables_columnfilterwidgets=true datatables_columnfilterwidgets_exclude_columns= 1,7,8,9,10,11,13,14
    datatables_sort=false
    datatables_paginate_entries=10
    filter=”Yes” filter_columns=14 /]

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    when I check your link from above, the exclude parameter for the ColumnFilterWidgets is still set to 1,2,5,6. Can you please check that again?

    Regards,
    Tobias

    Thread Starter amanfre

    (@amanfre)

    Thats odd, i just checked now and my shortcode is:

    [table id=1 hide_columns=”1,2,6,7,8,9,10,11,14″
    row_order=random responsive=”scroll” dataTables_paginate=true use_datatables=true datatables_columnfilterwidgets=true datatables_columnfilterwidgets_exclude_columns= 1,7,8,9,10,11,13,14
    datatables_sort=false
    datatables_paginate_entries=10
    filter=”Yes” filter_columns=14 /]

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    are you sure that that really is the Shortcode for the table in in your link? Could we be seeing some cached version of the page?
    Is there a “Custom Command” on the “Edit” screen of the table?

    Regards,
    Tobias

    Thread Starter amanfre

    (@amanfre)

    Hi,

    Yes that is really the shortcode in the table. I delete the cache through wordpress but didnt do anything. Is there a different cache for tablepress?

    I do have a custom command for this table as follows:

    “columnDefs”: [ { “orderable”: false, “targets”: [ 0, 1, ] } ], “columnDefs”: [ { “orderable”: false, “targets”: [ 0, 1, ] } ],”dom”: “Wlfrtip”,”oColumnFilterWidgets”: { “aiExclude”: [ 0,1,4,5 ] }, “language”: { “search”: “”, “searchPlaceholder”: “Search” }, “pagingType”: “simple_numbers”

    Im still lost to why the industry drop down wont show.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ah, that kind of explains it. You have the Shortcode parameter and a “Custom Command” that pretty much do the same.
    Please change the 0,1,4,5 in the “Custom Command” to 0,4.

    Regards,
    Tobias

    Thread Starter amanfre

    (@amanfre)

    Hi,

    That worked great, thanks, but it has now created another issue. I use this same table on another page, so that custom command change impacts the filters on this other table (refer https://bit.ly/2lvwuqu)

    You will see there are two new filters that now appear on the top, one which is blank and the other named ‘Sale Status’. What is the best approach to remove these?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    we should actually try with the

    "oColumnFilterWidgets": { "aiExclude": [ 0,4 ] }
    

    part in the “Custom Commands”. Then, the values in the Shortcode are used. Can you therefore please remove this from the “Custom Commands”?

    Regards,
    Tobias

    Thread Starter amanfre

    (@amanfre)

    Hey Tobias. That worked perfectly. Thanks as always.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    great! Thanks for the confirmation!

    Best wishes,
    Tobias

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Issue column filter widget’ is closed to new replies.