Hey everybody,
Just go a little question and it should be quite easy to answer.
If I click a record in the gallery, then it'll be focused.
But how to disable the focus of the record again if I click on the record of the gallery?
Thanks so much for helping!
Solved! Go to Solution.
Hi @Anonymous :
Only need to set two variables to achieve this function.I've made a test for your reference:
1\Set the Gallery's OnSelect property to :
Set(var,!var);Set(default,ThisItem);Reset(Gallery1) /*var and default is my variables*/
2\Set the Gallery's Default property to :
If(var,{},default)
Best Regards,
Bof
Can you show a screenshot
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
If I don't want a default item selected on the gallery, I can set the default property to {}.
Then the gallery has no focus by default. But if I click the gallery again, then it'll focus again. That's what I like.
But what I'd like to achieve is, if I click again, then the item should not be selected again (no focus).
I've tried following for the Gallery:
OnSelect {}
OnSelect SetFocus(Label)
But there's no chance to disable the selection for the Gallery.
Does anyone know how to achieve it?
Thanks so much for helping!
Hi @Anonymous :
Only need to set two variables to achieve this function.I've made a test for your reference:
1\Set the Gallery's OnSelect property to :
Set(var,!var);Set(default,ThisItem);Reset(Gallery1) /*var and default is my variables*/
2\Set the Gallery's Default property to :
If(var,{},default)
Best Regards,
Bof
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
185 | |
53 | |
41 | |
36 | |
30 |
User | Count |
---|---|
241 | |
74 | |
71 | |
69 | |
65 |