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 : FQxXSKKWE1qFlGrmaWgt1s
Power Apps - Building Power Apps
Answered

Disable Autoselect gallery

Like (0) ShareShare
ReportReport
Posted on 12 Sep 2021 08:37:24 by 321

Hi!,

I have one search box where if I search anything it will filter out the gallery below it. Moment the gallery get filtered out the first row of the gallery get auto-selected. How to disable this auto-selection of gallery first item after search? Kindly help.

Categories:
  • KatheB Profile Picture
    11 on 19 Sep 2023 at 12:47:07
    Re: Disable Autoselect gallery

    @Edd_PstrYou don't know how much time you have saved me, it works beautifully.

  • Verified answer
    Edd_Pstr Profile Picture
    21 on 12 May 2023 at 19:54:30
    Re: Disable Autoselect gallery

    I know this is already answered but I found that on the "default" property of the gallery if you type {} it will not be selected by default

  • Verified answer
    v-xiaochen-msft Profile Picture
    on 16 Sep 2021 at 02:49:33
    Re: Disable Autoselect gallery

    Hi @ashokpershad ,

     

    I suggest you modify the formula in the control that require gallery's output (gallery.selected.)

     

    For example:

    vxiaochenmsft_0-1631760305801.png

    Add a combo box control and set its Onchange property to:

    Set(A,1)

     

    Add a gallery control and set its onselect property to:

    Set(A,0)

     

    Then If you want to use a label control to show gallery.selected... , you could set its Text property to:

    If(A=1,Blank(),A=0, Gallery1.Selected.PostcodeStart)

     

    vxiaochenmsft_1-1631760527058.png

    vxiaochenmsft_2-1631760561116.png

     

    Best Regards,

    Wearsky

     

     

     

  • ashokpershad Profile Picture
    321 on 12 Sep 2021 at 09:36:51
    Re: Disable Autoselect gallery

    Thanks @WarrenBelz for your time... let me see if I can find any work around for same.

  • WarrenBelz Profile Picture
    148,894 Most Valuable Professional on 12 Sep 2021 at 09:19:49
    Re: Disable Autoselect gallery

    Hi @ashokpershad ,

    I must admit I have never been asked that one before - I did some testing with a non-existing record ID as the Default and it simply selected the first record (it selected another record successfully if it existed, but would not select nothing). It seems GalleryName.Selected cannot be an invalid reference (I can understand why this is so), so to answer your question, I do not believe it is possible.

     

    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.

  • ashokpershad Profile Picture
    321 on 12 Sep 2021 at 08:56:27
    Re: Disable Autoselect gallery

    Hi! @WarrenBelz 

    I want to select NONE... is it possible?

  • WarrenBelz Profile Picture
    148,894 Most Valuable Professional on 12 Sep 2021 at 08:55:13
    Re: Disable Autoselect gallery

    @ashokpershad ,

    The selection of the first item in a gallery is an automatic feature unless you specify another record in the Default property of the gallery. Do you want to select another record or select none?

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete