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 Platform Community / Forums / Power Apps / Multiple PCF on subgri...
Power Apps
Unanswered

Multiple PCF on subgrid - tied to specific view

(0) ShareShare
ReportReport
Posted on by 482

Hi Everyone!

 

I'm wanting to know if there's a good workaround for showing multiple components on one subgrid. Ideally I would have wanted to show a subgrid, show the index and switch between views that are tied to a specific default control to be able to show a list of activities as either a list, kanban or gantt depending on the view selected, but this doesn't work. 

 

I had thought about displaying a list of buttons above the subgrid to hide or show different subgrids tied to one control, but this doesn't seem ideal to me. Any other thoughts out there?

 

Thanks for any help and hopefully most people are on holidays and you all have a safe and happy time!

I have the same question (0)
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @skoofy5 , 

    I wanted to check  if you know that you can change the views and the Control you are using for a Dataset.
    1. You can set to get the standard view-switcher above your subgrid:

    DianaBirkelbach_0-1608734921321.png

     

    The user can also switch between the Dataset PCFs defined, using the "Show As" menu :

    DianaBirkelbach_1-1608734994246.png

     

    The definition for the PCF Controls attached can be made:

    1. Global for the whole entity 

    DianaBirkelbach_2-1608735156475.png

    2. Specific for each view

    3. For the subgrid

     

    You can specify more PCFs, and the user should be able to switch between them. Example (here the Kanban is not the default)

    DianaBirkelbach_4-1608735454208.png

    But in the "Show As" menu I can switch from my ColorfulOptionsetGrid to ReadOnly Grid or to Kanban.

    DianaBirkelbach_5-1608735507069.png

     

    In case you are looking for something else, please specify what doesn't work.

     

    Kind regards,

    Diana

     

  • skoofy5 Profile Picture
    482 on at

    Hi! Thanks for the reply, Diana! I'm aware of these options, but they're not the right solution to the user experience problem I'm having - I want particular views to display, by default, as the PCF associated to only that view. Enabling the components as available entity wide or for all the views on a subgrid is far from ideal, especially when there may be data specific needs as is the case for a gantt style control for instance. Thanks for taking the time though!

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @skoofy5 , 

    You still have the option to define the PCFs on the View level (so define the PCF for each specific view):

    DianaBirkelbach_0-1608979761158.png

    But if you need to choose the default PCF based on some data on the form, I don't know a way to do this.

    Kind regards,

    Diana

  • skoofy5 Profile Picture
    482 on at

    Which works for entity views, but not for subgrids. 😞

     

    I'm essentially trying to recreate that entity view experience, but from the form so that it displays only related records. 

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi  @skoofy5 , 

    I wasn't aware that the view PCFs are not reflected on subgrids. In my opinion it's a bug. 

    But it's at least worth to report it on "Ideas": Power Apps Ideas - Power Platform Community (microsoft.com)

    Kind regards,

    Diana

  • Goutham A Profile Picture
    76 on at

    Hi @skoofy5 

     

    Did you try publishing the form?

     

    I too noticed this issue around 4 months ago. Thought View level custom control is not supported for subgrids. So, I implemented by customizing the subgrid component in form and assigning custom control there. That works fine but i see that would not suit your requirement. Please create a support ticket with microsoft(i possibly think its a bug)

     

    As an alternative(recommend getting support from microsoft) , you need to have one large component and have a case\if statement in updateview to display the view accordingly(based on viewid or any other parameter).

     

  • Hemant Gaur Profile Picture
    Microsoft Employee on at

    Currently we don't have support for the sub-grid level view config and it is restricted to only home page. I have this in the back log and it will require some configuration switches to ensure that the current behavior is retained when desired. View configuration in the entity might have relevance only for the main home page grid and the smaller viewports for subgrid might not be optimal for rendering the control  all the time .

     

    Please use ideas forum and tag for PCF idea - https://aka.ms/PCFIdea 

     

    Thanks,

    Hemant  

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard