cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
elysy
Level: Powered On

Showing View Selector and Command bar on Subgrid Custom Compnonent

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!

10 REPLIES 10
PowerApps Staff HemantG
PowerApps Staff

Re: Showing View Selector and Command bar on Subgrid Custom Compnonent

@AnqiChen can you please review and recommend  ?

 

Hemant 

PowerApps Staff AnqiChen
PowerApps Staff

Re: Showing View Selector and Command bar on Subgrid Custom Compnonent

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
MinRao
Level: Powered On

Re: Showing View Selector and Command bar on Subgrid Custom Compnonent

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

Is these information documented some where? Or will document?

MinRao
Level: Powered On

Re: Showing View Selector and Command bar on Subgrid Custom Compnonent

sheldoncopper73
Level: Powered On

Re: Showing View Selector and Command bar on Subgrid Custom Compnonent

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

PowerApps Staff AnqiChen
PowerApps Staff

Re: Showing View Selector and Command bar on Subgrid Custom Compnonent

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
Level 8

Re: Showing View Selector and Command bar on Subgrid Custom Compnonent

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
 
 
PowerApps Staff AnqiChen
PowerApps Staff

Re: Showing View Selector and Command bar on Subgrid Custom Compnonent

hi @ScottDurow 

 

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

ScottDurow
Level 8

Re: Showing View Selector and Command bar on Subgrid Custom Compnonent

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

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Users Online
Currently online: 350 members 5,461 guests
Please welcome our newest community members: