SharePoint list column widths

Cashion, Colby 6 Reputation points
2020-08-24T17:10:06.62+00:00

I am looking to change the column widths of a SharePoint list to be permanently expanded for all users. Trying to do this via expanding the width and saving as new view only changes permanently for me, not for all users. See linked thread below for further detail.

https://answers.microsoft.com/en-us/msoffice/forum/msoffice_sharepoint-mso_win10-mso_o365b/set-permanent-column-width-of-a-sharepoint-list/267dd5d5-2e08-455f-93f7-61b6bbe4cf03?messageId=228b4e97-5478-414e-9462-70e2db5656f6

Microsoft 365 and Office SharePoint For business Windows
{count} vote

1 answer

Sort by: Most helpful
  1. Chelsea Wu 6,341 Reputation points Moderator
    2020-08-25T03:07:00.497+00:00

    Fixing column width using JSON column formatting would apply to all users who have access to this list view.

    The JSON code I use is:

    {  
      "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",  
      "elmType": "div",  
      "txtContent": "@currentField",  
      "style": {  
        "width": "500px"  
      }  
    }  
    

    However, there is a feature that allows users to adjust column widths themselves, which is available for users with all permissions including View Only.
    On the other hand, users will only be able to adjust how the column is displayed but will not change the contents within. So it should not be a problem.

    19957-column-width.gif


    If the response is helpful, please click "Accept Answer" and upvote it.

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.