• Resolved dariobaluci

    (@dariobaluci)


    Hi, is possible to reload a table with different filter with jQuery function?

    At this moment I load a table with shortcode:

    [table id=n filter="xxxx" filter_columns="m"/]

    and I would reload this table with a new filter by clicking a button that trigger a jQuery function

    jQuery(document).ready(function($){
         $("#button").click(function () {  
         .....
        });
    });

    Thanks a lot for ur time

    • This topic was modified 5 years, 7 months ago by dariobaluci.
    • This topic was modified 5 years, 7 months ago by dariobaluci.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, this is not possible with the TablePress Row Filter Extension that you are using here.
    You would have to switch to JavaScript-based filtering. For an example for that, please see the TablePress Extension from https://tablepress.org/extensions/datatables-button-filter/

    Regards,
    Tobias

    Thread Starter dariobaluci

    (@dariobaluci)

    Thanks Tobias for your reply.

    The plugin works fine.
    I had already tried to write via jQuery function inside the search box (which is actually what the plugin itself does) but the search was not trigger even activating the field change() or keypress() or other function in that field, however, with this plugin is possible to bind the search to only one column?

    Thanks again

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    unfortunately, I don’t know how restricting the search to one column could be done here. I can therefore only suggest that you check the DataTables API functions and then modify the JS code in the Extension accordingly.

    Regards,
    Tobias

    Thread Starter dariobaluci

    (@dariobaluci)

    Ok Tobias,

    Thanks a lot for your time

    Dario

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    sure, no problem! Sorry that I didn’t have better news here.

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Refresh table with different filters’ is closed to new replies.