Support » Plugin: TablePress » server-side / ajax search

  • Hi Tobias,

    I have a potential requirement to use TablePress for quite a large table (1000+ rows, 30+ columns). We’ve done some testing and it works, just, but the initial loading of the page is quite slow as you can imagine.

    I know TablePress makes use of datatables to some extent, and I know datatables has the ability to perform server-side processing https://datatables.net/manual/server-side.

    So do you think, with a bit of development, tablepress could perform it’s search server-side and only output the rows needed on the page to fulfill the search query, as opposed to rendering the whole table every time?

    If you think there may be a way to achieve this, and could point us in the right direction, I’ll pass this on to my developers and contribute back anything we develop.

    Many thanks in advance,

    Stuart

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I see what you mean, but unfortunately, it’s not directly possible to use this server-side feature with TablePress. You will need indeed need custom code. You could develop an AJAX handler, e.g. based on the WordPress admin-ajax.php feature set, which loads the table data (pretty much in the same way as the TablePress rendering functions do it), and then sends it to the browser.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘server-side / ajax search’ is closed to new replies.