Hello Friends,
Welcome back with another post on PowerApps. In our last post, we have studied on how to create nested Gallery and then we have applied the Expand / Collapse feature on that gallery. Then we applied Expand All / Collapse All.
- PowerApps: Nested Gallery
- PowerApps: Nested Gallery - Expand / Collapse
- PowerApps: Nested Gallery - Expand All / Collapse All
- Click on GalleryItemDetails gallery and select the Items property. Right now it is mentioned as ThisItem.ListItemDetails.
- Now, change the function with below-
With( {RecordsListItemDetails: ThisItem.ListItemDetails}, ForAll( Sequence(CountRows(ThisItem.ListItemDetails)), Patch( Last( FirstN( RecordsListItemDetails, Value ) ), {RowNumber: Value} ) ) )
- Further, select the TemplateFill property of the same gallery (GalleryItemDetails) and add below function. It will check if Mod value is ZERO (means even number row) then it will apply one color otherwise (odd number row) other color.
If(Mod(ThisItem.RowNumber,2)=0,RGBA(241, 244, 209, 1),RGBA(200, 200, 200, 1))
- Save the PowerApps and execute/play. The magic works. 🙂
- This way, we can add Alternate Row Color in PowerApps Gallery.
With this, I am concluding this post.
Happy Coding !!!
Will see you again with some new topics.
Stay Safe !
Stay Healthy !
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.