List-Formatting: View formatting - hideColumnHeader stopped working in web parts

Category

  • Question
  • [ x] Bug
  • Enhancement

Expected or Desired Behavior

Setting “hideColumnHeader”: true in view formatting json should hide column headers both in list and list web parts

Observed Behavior

The “hideColumnHeader”: true worked as expected in list webparts a month ago, but now only works when you are in the list.

Steps to Reproduce

Create a simple list Format default view { "schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json", "hideSelection": true, "hideColumnHeader": true, "rowFormatter": { "elmType": "div", "txtContent": "[$Title]" } } Add webpart list webpart to modern page Column headers are now hidden in the list but visible in the list web part

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 20 (5 by maintainers)

Most upvoted comments

@shagra-ms Turns out it was the command bar that shown, sorry for the misunderstanding now no column header and command bar turned off 😉 working perfect!

@FredrikEkstroem & @Divyeshkotadia - The fix is now available in production tenants. Please let me know if this is still broken for you, See https://github.com/SharePoint/sp-dev-docs/issues/5251#issuecomment-584469718