Forum Discussion
Column width resize in modern list
I agree with almost everyone in this thread. This is making Sharepoint Online with Modern Views an extremely tough sell to anyone I'm trying to onboard.
This is just one of a multitude of items that cannot be edited. I understand that reducing end user options makes for a more affordable product, easier to scale, easier to upgrade etc but this is bordering ridiculous.
Let's see those teams working towards functionality that should have been present out of the box.
- Michael TippettMay 18, 2018Copper Contributor
Why does Microsoft insist on taking 1 step forward and 2 steps back. Modern style is great, except there is no ability to customize which is stupid.
Then they make the title column wide for some reason without the ability to change it.
I give 1 Vote to fix this, easiest way, and best way, give us back access to the CSS!
In saying that, I've found a (annoying) workaround.
Create a Calculated Column, make the value equal the Title value. Then update the JSON FORMATTER to make it a link if required.
Then hide the title in the view and show the calculated one in its place.
now the kicker, I couldnt figure out how to get the ID in the JSON Formatter, so I had to make a middle redirect page, which translated the Title into an ID and forwarded it to the correct place. (this step is only required if you need the title to link to edit the list item)
- Michael TippettMay 18, 2018Copper Contributorjust with the above, I managed to hack a way to get id as well..
There maybe a better way (I really hope there is) but I made ANOTHER calculated field, and made it =Id I called this IdCopy, then in the json formatter where I set the link i did this:
{
"debugMode": true,
"elmType": "a",
"attributes": {
"target": "_self",
"href": {
"operator": "+",
"operands": [
"/SitePages/JobDetaildev.aspx?JobCode=",
"[$IdCopy]"
]
}
},
"txtContent": "@currentField"
}
ALOT of UGLY work just to get it to stop taking up a set width.- Cy MarvenMay 18, 2018Brass Contributor
Well, just a about a year I think and still nothing. Some elaborate work arounds but really? I would like to just be able to set the width as an attribute when I set up the column. Not only do I not code but I want users to take control of their own lists. Are all 400+ members of my organisation to learn Java or CSS?