Dear visitor, despite the COVID-19 outbreak, our team continues operating at full speed.

Also, here is the form where you can apply for a special discount and we will contact you with possible options. Stay safe and continue achieving your business goals.

Fill the form
Get Free Trial
Get Free Trial

Can sort value A then show value B on table?

Answered
pvaritta asked on November 28, 2018

Hi,
I attach a sample jsonData pattern below.
If I would like to sort data by sequence but would like to show ‘name’ on the table. Which component that I have to use and how?
 
Thank you. 
 

[
{
sequence: 1,
name: '1 month',
Сountry: 'Canada',
day: 30,
},
{
sequence: 2,
name: '2 months',
Сountry: 'China',
day: 60,
},
{
sequence: 3,
name: '1 year',
Сountry: 'Columbia',
day: 365,
},
{
sequence: 4,
name: '3 year',
Сountry: 'Sweden',
day: 1095,
},

]

1 answer

Public
Tanya Gryshko Flexmonster November 28, 2018

Hello, Varitta,
Thank you for posting to our forum.
To achieve that we suggest applying custom sorting to the name column. Such sorting can be based on sequence. For more information and examples on how to define custom sorting for the name column, please refer to our guide: https://www.flexmonster.com/doc/custom-sorting/.
Hope it helps.
Regards,
Tanya

Please login or Register to Submit Answer