Need for a tree control

More complex controls with PowerApps are definitely needed, and maybe these will comes as the product continues to mature. One such control that is definitely needed and often used is a tree control.

At the moment to implement a tree within PowerApps we’re forced to cludge together nested galleries, however if you need greater than a two-level tree you’re out of luck and need to come up with another solution. I did spot someone’s solution albeit written in Japanese, sadly my understanding begins and ends with sushi.

I spent today desperately trying to get that third-level gallery to happen as the data I’m trying to show requires it. No joy sadly, however the site I was referencing did teach a few tricks I will take away for future reference, namely:

  • Items: rather than creating a collection, specifying the items via a GroupBy command and within also using the AddColumns command
  • The nested gallery specified its height to be calculated by the number of items multiplied by the template size. That said, this didn’t work for me so it may need tweaking to actually work.

Back to the drawing board.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.