web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : eBNbA34O4RyW099eBG7whj
Power Apps - Building Power Apps
Answered

Stop Sort Icon From Moving

Like (0) ShareShare
ReportReport
Posted on 20 Aug 2020 17:28:07 by 237

So I have this data table and it has enough columns so that you have to scroll left or right to see all of them. I created a sorting icon that I want to put next to some of the columns I want to be able to sort on. The problem is that when I move left to right on the data table the icon moves too. Is there any way I can keep the icon placement constant so that it stays put where its at and doesn't move with the data table? Powerapps icon question.PNG

Categories:
I have the same question (0)
  • muthuselviM Profile Picture
    4 on 10 Jan 2024 at 07:28:09
    Re: Stop Sort Icon From Moving

    hii,

    I created a table for sorting the problem is sort icon is moving while scrolling the data table.can pls help how to fix the icon constant in one place.

    can u briefly explain how to fix the x position for data table scrolling in power apps 

  • bhanney2323 Profile Picture
    237 on 21 Aug 2020 at 19:42:57
    Re: Stop Sort Icon From Moving

    I just ended up using one single drop down for this because it can show decimals. This works, honestly I just liked the design of the slider but whatever

  • PowerAddict Profile Picture
    7,314 Most Valuable Professional on 21 Aug 2020 at 18:44:05
    Re: Stop Sort Icon From Moving

    Glad I could help! Good luck with the rest of your app! Feel free to reach out in case of any questions!

     

    You can use 2 sliders or 2 dropdowns. First one for the digits before decimal. Second one for the digits after the decimal. This might be a good approach. Let me know if you end up using this. 

     

    Thanks,
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com

  • bhanney2323 Profile Picture
    237 on 21 Aug 2020 at 17:13:13
    Re: Stop Sort Icon From Moving

    Thank you so much for the response! Unfortunately because my columns values are mostly decimal numbers, it doesn't seem like the slider can do incremental values 😞

     

    I can still use a dropdown tho 

  • Verified answer
    PowerAddict Profile Picture
    7,314 Most Valuable Professional on 21 Aug 2020 at 13:19:30
    Re: Stop Sort Icon From Moving

    You sure can. I will give you a generic example of using a slider control in a Filter function for numeric columns. 

     

    Filter(DataSource, NumericValue = Slider.Value)

     

    Set the Min and Max if the slider to the values that are possible for that column. 

     

    Let us know if that helps. 

     

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

     

    Thanks!
    Hardit Bhatia
    Microsoft Business Applications MVP
    https://thepoweraddict.com

  • bhanney2323 Profile Picture
    237 on 21 Aug 2020 at 12:29:57
    Re: Stop Sort Icon From Moving

    Thank you for the answer to my question, unfortunately this does not help me, but it does give me some alternative ideas for filtering my numeric columns (outer_diameter, inner_diameter, etc.) 

     

    So as a sort of a follow up question, is there any way you think I could just add a slider control to add an additional filter on numeric columns like outer diameter, inner diameter, height, etc.? It doesn't seem like there are a lot of resources on the slider control in general, not sure if this is the best option for what I am thinking, so if you have better suggestions let me know too. Thanks. 

  • WarrenBelz Profile Picture
    150,103 Most Valuable Professional on 21 Aug 2020 at 03:55:08
    Re: Stop Sort Icon From Moving

    @bhanney2323 ,

    @PowerAddict is completely correct in his elaboration of my brief post. A Data Table has no properties that I can see that would allow the detecting of how much you were scrolling, which would be necessary to set the X property of the icons (which I assume are outside the table) accordingly.

  • PowerAddict Profile Picture
    7,314 Most Valuable Professional on 21 Aug 2020 at 02:57:24
    Re: Stop Sort Icon From Moving

    Completely agree with @WarrenBelz 

     

    @bhanney2323 are you saying you have icons added outside the data table next to the headers? Or are they inside the data table? If inside, I would really like to know how you did it. And if outside, then I would have expected your question to be about how to move the icons when the table is scrolled left to right, and not, how not to move the icons. Am I missing something? 

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Microsoft Business Applications MVP

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

  • WarrenBelz Profile Picture
    150,103 Most Valuable Professional on 21 Aug 2020 at 01:11:55
    Re: Stop Sort Icon From Moving

    Hi @bhanney2323 ,

    No, you cannot add icons inside a data table as you can in a gallery.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 936 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 375 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 330 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete