web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to dynamically set...
Power Apps
Suggested Answer

How to dynamically set the templatesize property of the gallery on power APP

(1) ShareShare
ReportReport
Posted on by 2
Hi Team,
I want to know how to dynamically set the value of attribute Gallery'templatesize because I am facing the following requirement: I need to embed a reply box in the sub gallery and change the size of the selected item's templatesize. I need to use a button to make it work,. However, the current effect is that my changes will affect every item in the gallery. Is there a way to make it only work on the row I am currently selecting.The size of each item will increase, can't we control the selected item separately?
The effect I need is that when I click on an item, it only opens a reply box and adds a templatesize to the item I have selected, and the remaining unselected items are not affected.
Can we achieve such control? Or are there any alternative solutions? Thank you very much for your help
I have the same question (0)
  • Suggested answer
    MichaelFP Profile Picture
    1,847 Super User 2025 Season 2 on at
    for that scenario I recommend to you to use the container, so you will be able to set the size based on the parent.
  • Suggested answer
    CamiloLuque Profile Picture
    157 on at
    Hi, you can use the flexible height gallery and just need to set the object Visible property to true or false.
     
     
     
    In the button Reply I Update the Reply column to false for the other records and Patch Reply column of the selected record to true or false:
     
     
     
    The Reply column set the Visible property for text box and submit button:
     
     
     
    Look how to work:
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard