Sauter la navigation

[Résolu] Views table sort without page reload

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
How to sort table on screen without page reload?

Solution:

There isn't such kind of built-in feature within Toolset plugins, each time you resort the result in frontend, Views need to query the database again, and get the sorted results, setup the pagination as well.

If you don't need pagination, you can consider custom codes, for example:

https://www.w3schools.com/howto/howto_js_sort_table.asp

Relevant Documentation:

This support ticket is created Il y a 2 années et 10 mois. 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par Tiit Sau Il y a 2 années et 10 mois.

Assisté par: Luo Yang.

Auteur
Publications
#2317983

Hi,

I guess there is a way to sort table on screen without page reload. Mine makes full refresh.

Tiit

#2318125

Hello,

There isn't such kind of built-in feature within Toolset plugins, each time you resort the result in frontend, Views need to query the database again, and get the sorted results, setup the pagination as well.

If you just need one page of pagination , you can consider custom codes, for example:
lien caché

You need to output the views result with HTML codes according to above document.

#2318151

My issue is resolved now. Thank you!