cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ashokpershad
Kudo Kingpin
Kudo Kingpin

Disable Autoselect gallery

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.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

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

 

 

 

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

@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?

Hi! @WarrenBelz 

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

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
Kudo Kingpin
Kudo Kingpin

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

v-xiaochen-msft
Community Support
Community Support

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

 

 

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,481)