cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

Dropdown resets while using Filter or Search function on Gallery Items.

Hi all, 

 

I was troubling with gallery issues, I tried to implement the Search/Filter input in Gallery.Items and it works very well. 

I was able to filter any items within gallery but I do have a dropdown used in that particular Gallery.Items and it just resets back if I search any other terms after my first search. 

 

Here's a screen shot for the reference.

 

ashwnaidv100_0-1600859854113.png

 

The dropdowns just reset when i search for other key words on dropdowns on gallery.  

6 REPLIES 6
Frequent Visitor

Hi @ashwnaidv100 ,

 

Have you tried setting the default value as a variable? For example, change the 'OnSelect' value of the dropdown to "Set(FirstSelection, Dropdown1.SelectedItems.Value)", then the default value the dropdown as this variable, in this case "FirstSelection".

 

Hope this makes sense!

Hi @Maria_L,

 

This makes sense. I haven't tried it before. But I just tested after your post. And below is the result. Which says expected a record,

Even I tried FirstSelection.Value, But the error is same. Not sure even if this will keep it stored for each dropdown items in gallery. 
Even I tried to put {_value : FirstSelection}, But it also didn't worked out. 

 

ashwnaidv100_1-1600965464980.png

 

Any more suggestion would be really helpful. 

 

 

No the problem still not resolved. 

@v-bofeng-msft

Hi @ashwnaidv100 ,

This is a known issue with unbound gallery controls - they reset to Default whenever something is triggered from the gallery. If you are using a collection for the Gallery Items, use AddColumns to add a Text field, Patch to this field on the OnChange of the drop-down and then set the Default of the drop-down to ThisItem.TextFieldName.

 

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.

Hi @ashwnaidv100 ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

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.

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (5,615)