Buy Now
Sign in

Make columns sortable

touretteroma , April 20 2019, 16:05
T
touretteroma 70
April 20 2019, 16:05 #386166
Dear all,
recently, you added "Table List" component. It is very usefull to display the content of a table from database.
How is possible to make columns sortable? is it possible to add a "Sorting link" to the headers? How to configure the sorting link?
I would like to create something similar to your page where is possible to view the content of the table attached to the form.
Thanks
admin 27
April 21 2019, 15:54 #386172
You will need to use the sorting widget in the headers area of the table then call it in your table settings, I'm supposed to add a demo on this feature soon!
Best regards
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
T
touretteroma 70
April 21 2019, 18:23 #386173
Dear Max,
I'm trying to put a sorting widget in the headers area, but it is not clear which should be the value in "Field" and "Content" of the sorting widget.
Moreove, what does it means "... then call it in your table settings" ?
Could you please provide a simple sample :-)
Happy Easter
Tourette Roma
healyhatman 7
April 21 2019, 22:33 #386177
Field would probably be the name of the field it's sorting by and Content would be the text content of the heading.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
T
touretteroma 70
April 22 2019, 10:36 #386178
I'm trying... unsuccessfully.
Here my sample... no sorting link is displayed
Where am I wrong?
Attachments
LIST_TEST_22_Apr_2019_12_34_36.cf6bak
(3 KiB)
45 Downloads/Views
healyhatman 7
April 22 2019, 11:24 #386179
In your columns list, replace Header with {view:sortername}
For example,
Data3.id:{view:sorter2}
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
T
touretteroma 70
April 22 2019, 13:38 #386180
Yes, now sortable widget appears on header. But clicking, ascending/descending order doesn't change.
Here my updated form.
I added sortable fields (A list of fields to be open for sorting using the sorter widget) but order never changes
Attachments
LIST_TEST_22_Apr_2019_15_33_46.cf6bak
(2.5 KiB)
43 Downloads/Views
admin 27
April 24 2019, 12:14 #386272
And you added this list to the "Read data" action too ?
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
T
touretteroma 70
April 24 2019, 18:39 #386280
 Answer
Yes, I do it.
Please, look
Screenshot_2.png
Is it correct?
Why doesn't sort ascending/descending?
Regards
Attachments
Screenshot_2.png
Screenshot_2.png
(3.27 KiB)
71 Downloads/Views
Screenshot_2.png
Screenshot_2.png
(3.27 KiB)
91 Downloads/Views
T
touretteroma 70
April 28 2019, 16:54 #386375
Dear all,
any further suggestions about this topic?
Regards