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 / Showing View Selector ...
Power Apps
Unanswered

Showing View Selector and Command bar on Subgrid Custom Compnonent

(0) ShareShare
ReportReport
Posted on by 2

Hi!


I'd like to retain the view selector on the subgrid when I'm applying a dataset custom control just so I can switch between my custom control and ootb subgrid. This should be possible because when I set the ootb subgrid as the default control and I switch to my PCF control thru the subgrid view selector, the whole command bar still remains.
Any advice on how I can make this to work?

Cheers!

I have the same question (0)
  • Hemant Gaur Profile Picture
    Microsoft Employee on at

    @AnqiChen can you please review and recommend  ?

     

    Hemant 

  • AnqiChen Profile Picture
    Microsoft Employee on at

    hi,

     

    For subgrid on form, you should get Commandbar/ViewSelector/QuickFindSearch/Jumpbar by free. Here is the way,

     

    Suppose you have a data set control, its manifest xml node is like

    <data-set name=”foo” >

         .....

    <data-set/>

     

    Then all you need is to 

    1) Update manifest version

    2) Update that node and add attribute  cds-data-set-options=”displayCommandBar:true;displayViewSelector:true;displayquickfind:true”
     

    It will look like

    <data-set name=”foo” cds-data-set-options=”displayCommandBar:true;displayViewSelector:true;displayQuickFind:true”>

         .....

    <data-set/>

     

    • For View selector and QuickFind, you also need to turn on in form editor associated subgrid configuration
    • There is another key displayIndex is for jumpbar, u could check if u want to turn it on
  • Min Rao Profile Picture
    187 on at

    @AnqiChen Information for getting all these controls are very helpful, thanks a lot.

    Is these information documented some where? Or will document?

  • Min Rao Profile Picture
    187 on at

    I found these information in following link.

    https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/data-set

  • Sheldon Copper Profile Picture
    200 on at

    I am getting this after adding this line in dataset tag-

    cds-data-set-options="displayCommandBar:true;displayViewSelector:true;displayQuickFindSearch:true"
     

    [pcf-1014] [Error] Manifest validation error: instance.manifest.control[0].data-set[0].$ additionalProperty "cds-data-set-options" exists in instance when not allowed

  • AnqiChen Profile Picture
    Microsoft Employee on at

    hi Sheldon,

     

    1. May I see the full manifest?

    2. Are you using CLI to import?

       It might not compatible with CLI, but once the solution created, you could manually update it

  • ScottDurow Profile Picture
    1,039 on at

    Setting 

    cds-data-set-options="displayCommandBar:false;displayViewSelector:false;displayQuickFindSearch:false" in the data-set manifest element no longer seems to have any affect? 
     
     
    Perhaps this only applies to subgrids?
     
    How should we remove the commandbar, view selector and quick find for a dataset custom control on a home page grid? @HemanthG 
     
    Thanks,
    Scott
     
     
  • AnqiChen Profile Picture
    Microsoft Employee on at

    hi @ScottDurow 

     

    We will follow up with associated team to enable this on HomepageGrid. Thanks for reporting!

  • ScottDurow Profile Picture
    1,039 on at

    Any news on this? Currently I have to expand the flex box to cover the viewselector and command bar which isn't ideal.

  • AnqiChen Profile Picture
    Microsoft Employee on at

    This work is being picked up.

    I guess the check-in could be at about next 2 weeks. And it needs  about 6-7 weeks to release to North America area.

    So I would say it needs about 2 months for this to be landed

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