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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

powerapp gallary

(0) ShareShare
ReportReport
Posted on by 2

I am new to PowerApps and understood that Gallery is used to show list of records from collection. And for these collection one can choose from the predefined template (and template can be modifed with additional controls)

 

The individual controls can be made hidden or visible depending on items property value ( for eq. Status / Category).

(The collection of control is treated as data card - in case of Edit Form, per field there is datacard)

 

Would it be possible that, I can have different template ( data card) for Gallary depending on the items specific property.

For eq. 

If Status is "completed", then i can use data card(template) which is template1.

If Status is "pending" then I can use data card(template) which is template2.

 

(Something like in WCF , we have can have different template for one list view component and depending on items type specific template get used for displaying data).

 

Categories:
I have the same question (0)
  • timl Profile Picture
    36,785 Super User 2026 Season 1 on at

    Hi @rajesh_patil74

     

    Yes, it's possible to display different data cards depending on the value of your 'status' field.

     

    You can use an IF statement to conditionally show or hide cards, and the technique that you would use would be similar to the technique that's shown here.

     

    https://powerusers.microsoft.com/t5/General-Discussion/Hide-Data-Card-when-value-is-blank/m-p/42349#M17544

     

     

  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @rajesh_patil74,

     

    You cannot have different template for the same gallery because Gallery use a template data card which is the first one to manage and work on the rest of it. But you can make this possible by setting the OnVisible property of the related controls. For example, you use the Image and Title Gallery layout , and set the OnVisible property of Image control inside the first data card to:

    If(IsBlank(ThisItem.PictureLink),false,true)

    Notice that this will only make the image control invisible but there still will be a blank space there. I personally think that this is meaningless because even though you don't set this visible property, if there is no value in Picture column, the image control will be blank too.

     

    If you really need to have different layout for each data card, maybe you could post this idea in the PowerApps Ideas forum, so it might be considered for future releases.

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

      

    Regards,

    Mona

  • rajesh_patil74 Profile Picture
    2 on at

    @v-monli-msft

     

    What I need to show is dynamic form (depending on "Type" column, different controls should be visible )

    For eq. ( Label Single line TextBox) , (Label, Multiline TextBox),  (Label, 3 - 4 CheckBox), (Label - 3-4 Radio Buttons ) etc.

     

    Placing all these controls and enable/disable them, i think will have a performance overhead, so expecting it would be nice to use the datacard depending on some field.

     

    So one gallay component but depending on item type different template (datapart) will be used. ??

     

    -- Posting the idea is new idea forum.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard