697
Views
6
Comments
Icon Changes Based On The Sort (ASC or DESC)
Question

Hi All

I am Using   List_SortColumn  once i click on the title of the column it sort ASC or DESC.

What i want is:-

1) once i click Ascending it should show (arrow down) and hiding the (arrow up). 

2) once i click Descending is should show (arrow up) and hiding the (arrow down). 


If i use  IF Condition what Should i use in the condition.

Note:

The Icon should not be clickable.

Regards

Hind Ahmed 


2022-10-20 02-09-39
JeffT

hi hind,

you may use "Sortable Icons " component ..in this you dont need to right any condition for icon .

https://www.outsystems.com/forge/989/

It simple to use .

Cheers,

Rocky

UserImage.jpg
Hind Ahmed

Rocky wrote:

hi hind,

you may use "Sortable Icons " component ..in this you dont need to right any condition for icon .

https://www.outsystems.com/forge/989/

It simple to use .

Cheers,

Rocky

hi Rocky

I install it but then how can i use this components ?!

Regards

Hind Ahmed


2022-10-20 02-09-39
JeffT

Hi Hind,

Just Drag and drop the ShowSortTableIcons on first column of your grid.

Cheers,

Rocky

UserImage.jpg
Hind Ahmed

Rocky wrote:

Hi Hind,

Just Drag and drop the ShowSortTableIcons on first column of your grid.

Cheers,

Rocky

Thanks Rocky .... It worked, i appreciate your help

Regards

Hind Ahmed


2022-10-20 02-09-39
JeffT

You are alway welcome Hind.Please mark it as solution so that it will helpful for other developer.

Cheer,

Rocky

2019-03-28 04-18-45
Aditya Chopra

Hi, I'm doing the same thing i.e. placing the sortable_icons in the first cell in the header of the table but its not working.

I've used List_sortColumn on every column of my table.

Sorting is working fine but the icons are not changing.


Can you please help?


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.