I need to be able to sort a list. The way I did the sort is not the proper way.
I added buttons to the fields I want to be able to sort. But when I scroll across the list the buttons I added don't scroll like the list.
Here the sort function.
I can sort different columns but I don't like how I coded it.
What I wanted to do is to add buttons on each of the columns I want to sort on. Problem with this is the sort buttons when scrolling the buttons don't scroll along with the rest of the list. What am I missing?
From my understanding of canvas apps there is no way to add code to the list headers. So what I did instead was to add the sort code to the onselect property of each of the columns I need to sort. Works perfectly.
Thank you all.
Keith I'm not sure where to add the buttons to.
Thats exactly the problem. With canvas apps when you add a datasource the fields and headers are pulled in together. I don't know of a way to remove the headers.
This is a canvas app and the list in question is a data table. With model driven apps the sorting of the fields is a function right out of the box.
It's a data table? That's different.. I don't know if you can get the button to line up with a column in a data table..
I can't seem to figure out where to place the sort icon
Heres my tree view. Can you tell me where I need to add the buttons to?
Try selecting the gallery then insert a new button, it should show as nested under the gallery.
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Connect with me online.
I'm not getting how to add the buttons to the gallery.
WarrenBelz
146,660
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional