Skip Navigation

[Resolved] Table sorting without page reload

This thread is resolved. Here is a description of the problem and solution.

Problem

I created a sortable Table in a View loop like outlined here: https://toolset.com/documentation/user-guides/view-layouts-101/

The problem is, that the page reloads everytime a header item is clicked so to re-order the table.

I want to re-order this without reloading the entire page.

Solution

This is not possible with Toolset Views.

What you can do, is using the Orderby Custom Filter ShortCodes instead, they use AJAX update if you apply them in the Custom Filter Settings.

It's not the exact same but has a similar output.

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 3 replies, has 3 voices.

Last updated by holgerK 6 years, 10 months ago.

Assisted by: Beda.

Author
Posts
#619429

If i create table views in VIEWS with sorting by header, a very big problem is, that the page reloads everytime a header item is clicked.

Think of posts with lots of fields that are organised in tabs.
If I sort a column in the third tab (for example), the page reloads and everything jumps to the first tab.

the use of jquery datatables could help a lot.

#619530

Hi, I think that could be useful for data-intensive applications. I recall that another supporter had an idea about integrating this plugin, but I do not recall the outcome of that discussion. I will reassign this ticket to Beda, who handles feature requests for Views. Please stand by and he will follow up with you soon.

#620101

There are no plans yet to integrate this, however, a Colleague had done some work with jQuery DataTables in past.

This gave an input to the developers to consider this, but I have no ETA and cannot even state if it will be implemented sooner or later, as this is still subject to discussions.

Once we will decide you will be able to find this information either in our Blog, Changelog or the future "Feature Requests" list that you will even be able to upvote (on single requests).

There is also no current custom code solution for this.

What you can do, is using the Orderby Custom Filter ShortCodes instead, they use AJAX update if you apply them in the Custom Filter Settings.

It's not the exact same but has a similar output.

#624166

Thanks. I will wait for the results