Forum Discussion
Mike Insch
Feb 20, 2018Copper Contributor
Column formatting not showing when view shown in a List Web Part (Modern Page and List)
I have a list with a JSON Column Formatter applied, the column format works fine when viewing the list directly, however when I'm using the List Web Part (still appears to be a preview part), the col...
Philipp Kirchmeir
Feb 26, 2018Copper Contributor
Dear Lincoln,
Are the next couple of month a matter of 3-4 month or a matter of 6 to 12 month.
It would be good know, if I can count on it when we go online with our awesome new SPO platform in June or I need to work on an alternative solution.
Thx for letting me know
Philipp
LincolnDeMaris
Microsoft
Feb 26, 2018We're actually planning on rolling this out in the next month or two. We have not made the announcement yet, so it's not certain, but we're on a path to ship very soon.
- mmmillerMay 31, 2019Copper Contributor
LincolnDeMaris Do we know if Microsoft plans on setting up classes to be seen in the list web part as opposed to styles in modern sites anytime soon?
- Gary_StewartApr 30, 2019Copper Contributor
Hi Lincoln,
Not sure if this has rolled out yet, but custom list views had been working OK in list web parts (except for classes - had to directly apply styles instead); however, today I noticed that column headings are now being shown in the web parts. They weren't appearing yesterday, and I haven't changed anything on my end. This is happening in multiple tenants. Is this something that is going to be corrected (soon I hope)?
Thanks
- DeletedApr 12, 2019
LincolnDeMaris One other question, does it matter whether you insert a list into a page using the App Part or the Web Part?
- DeletedApr 12, 2019
LincolnDeMaris Please can you tell me the notice number (MCxxxxxxx) under which this was rolled out. It is still not working in our tenant and I want to check the notice has been applied to it.
- Ann_MApr 04, 2019Brass Contributor
Matt Hobbs This is very confusing. I have two modern communication sites. They are very simple sites. I applied the same exact (copied and pasted) JSON formatting to a view. It looks great when looking at the library.
I display the library with a Document Library Web Part, usingthe formatted view. On one site it works perfectly. On the other site it refuses to render. Colors and hovering behavior are the most affected. I see a lot of gray. Depending on the browser, hover may or may not work.
But why is this inconsistent between my two sites?
I would appreciate any insight to this.
- Matt HobbsMar 07, 2019Copper Contributor
I've tried every suggestion in this thread and cannot get the List Web Part to display conditional formatting on a modern page. Like others, it works beautifully in the list view, just not on a modern page (where it would be most useful).
It's unfortunate. This is highly requested by our user base. I was preparing to introduce this feature to the power-users in our company, but I don't feel comfortable showing them a feature that feels only half-finished.
UPDATE: Column formatting is now working in our tenant. Thanks for fixing this!
- Darin HawleyFeb 10, 2019Copper Contributor
For the record, here is a test list with the first column rendered using my code and the second column rendered using the built-in color formatter.
And here is the same list embedded in a modern site page...
- Darin HawleyFeb 10, 2019Copper Contributor
Thanks for the clarification, but as noted in my previous post it was also not working in modern Site Pages. I did manage to write some JSON code that works, but only by setting background color directly, not via predefined classes. I kept it simple here w/o conditional logic by just making the values of the list choice an HTML color name (I only needed Red/Yellow/Green for status).
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "div",
"style": { "background-color": "@currentField" }
} - Beau CameronFeb 07, 2019MVP
Darin Hawley Web Part Page, Wiki Page are classic SharePoint pages. The column formatting only works on the modern web parts, which are available on the modern pages only.
- Darin HawleyFeb 06, 2019Copper Contributor
Not working here either. Applied coloring with the standard "Fill background color" template for a choice field, and looks great in the modern list view. But have tested now in Web Part Page, Site Page, and Wiki Page and none of them is displaying the background color formatting.
It's been almost a year since original post, and several months since promised fix. Any update? Some people are reporting the behavior fixed, others not. Was it not fully deployed, or rolled back?
Thanks.
- M-B_93Feb 06, 2019Copper Contributor
It doesn't work for me, too.
- ilenejonesJan 22, 2019Copper Contributor
So, I have a page that has multiple lists that I'd like to customize. The first two web parts that I added with the first two lists work great. None of the rest are using the list styling. How do I make that happen for more than just two lists?
- RonaldPJan 19, 2019Copper Contributor
Hi! I read the issue was resolved but I do not manage to see the column formatting in the webpart that I inserted into the starpage. My JSON code in the formatting part of the column:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "img",
"attributes": {
"src": "='https://xxxxxxx.sharepoint.com/sites/intranet/Ledenfotos/'+ @currentField + '.jpg'"
},
"style": {
"width": "60px"
}
}This works fine in the normal listview but when inserted as a webpart it just shows the content of the field instead of the picture.
- Christy SpielmanJan 17, 2019Copper Contributor
I would also like formatting to show up on Views. Can this be done? Would be extremely useful for me.
Christy
- Joy_StantecJan 02, 2019Copper Contributor
Hi Lincoln,
Thanks for the update! I can see the column formatting in the Web Part pages, but when I assign a view to the Web Part, the view does not stay once the page is published.
Is there a fix planned for the Web Part views to actually stay in the Web Part pages?
On Site and Wiki pages, I can get the correct view to show once the page is published, but the JSON column formatting does not show.
Is there a type of page where the web part has both column formatting and correct (not always the default) view?
Thanks,
Joy
- LincolnDeMarisDec 21, 2018
Microsoft
This feature is now fully rolled out; you should be seeing column formatting inside web parts now in your environment.
- Joy_StantecDec 20, 2018Copper Contributor
Hello! Is there an update on this feature?
- Bill DickJul 18, 2018Copper Contributor
It is available now on my account, but I am setup for targeted release in our tenant so I imagine it will be generally available very soon?
- Catherine HensonApr 03, 2018Copper Contributor
Any update on this feature rolling out. Last update in this thread was about 2 months ago.
Thanks
- DeletedApr 03, 2018
Hey Lincoln,
Hope all is going well. Any update on when this will be available?
Thanks in advance,
Greg