Skip to main content

Notifications

Community site session details

Community site session details

Session Id : aZ4pBFw0pEhPL8OKM0Ga3W
Power Apps - Building Power Apps
Unanswered

Scroll Bar Issue in Canvas App

Like (1) ShareShare
ReportReport
Posted on 22 Oct 2024 08:18:37 by 20
We have designed a canvas app with a gallery that has one input field and can show items with the default pagination of 200 and scroll bar is enabled for the gallery. We have added a onChange event on the input field to update the value entered by the user in the input field. We are facing issues in patching the input field value in the Dataverse as the OnChange event will be triggered only when the user clicks somewhere else in the gallery before proceeding to update the field for some other item. Suppose if the user enters the input field value for item 30 and without clicking anywhere in the gallery if he scrolls down and enters the input field value for item 150, the 30th item input field value is not available in the patch to update in the dataverse that results in empty input field value being persisted in the database.

Can someone please clarify if this is how the scroll bar works in PowerApps.
Categories:
  • Suggested answer
    Nandit Profile Picture
    1,563 Super User 2025 Season 1 on 22 Oct 2024 at 23:58:45
    Scroll Bar Issue in Canvas App
     
    The Trigger Output is a property in the modern Text Input control but I would not suggest using the "Key Press" property in Modern Control with OnChange property as it will try to Update the value as soon as you will add even a single letter. 
     
    I think the best way to solve this would be introduce a Edit/Save button in the gallery, making the users press it after making updates to the record in the gallery.
     
    To achieve this,
    1. Add a button in your with the following properties
    OnSelect
    If(
        ThisItem.IsSelected && Self.Text = "Edit",
        UpdateContext({editItem: !editItem}),
        //Your OnChange property here; 
        UpdateContext({editItem: !editItem})
    )
    Text
    If(editItem && ThisItem.IsSelected, "Save", "Edit")
    2. Add the following in the DisplayMode property of your Text Input
    If(
        editItem && ThisItem.IsSelected,
        DisplayMode.Edit,
        DisplayMode.Disabled
    )
    This is how it will look:
    After pressing Edit on a record in the gallery:
     
    Hope this helps.
     
    Kind regards,
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
  • Sudha857 Profile Picture
    20 on 22 Oct 2024 at 15:18:03
    Scroll Bar Issue in Canvas App
    Thanks for the response. We tried looking for this property in the power apps authoring version as below
     
    But we are not able to see the Trigger Output property for the input field. Can you please let us know the version which we can find this for.
     
    Thanks!
  • elseb Profile Picture
    762 Super User 2025 Season 1 on 22 Oct 2024 at 12:27:59
    Scroll Bar Issue in Canvas App
    Change trigger output mode of the input to Key Press for example.
     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started