Using pods pagination with jquery plugin tablesorter

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  chris.pilko 1 year, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #167095

    garfield
    Member

    I have implemented the jquery plugin tablesorter into my to display pod data. However, when I implement the pod pagination method, it does not retain the selected sort order by the user.

    Can someone instruct me on how to achieve this?

    Thanks in advance.

    #167096

    chris.pilko
    Member

    If you want to use Pods pagination you’ll need to write a set of functions to add the user’s selected options to the URL as query string components, then parse them to reset those options when you reload the page. From what I can see, there are no ready-made jQuery / javascript functions that write to or parse the query string.

    A better option might be to return all the records with Pods, ( findRecords(‘t.id ASC’, -1); ) and then use the tablesorter pager plugin.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Wordpress Cloud Hosting