May 03 2019 10:59 AM
Good Afternoon,
I would like to freeze the first (and maybe second) column of a large list I have so when users scroll, they can still see the first column, like in Excel. I’m trying to see if anyone is familiar with how to do this or has script to accomplish this task.
Thanks!
Arielle
May 03 2019 12:56 PM
May 03 2019 01:11 PM
Try Sticky Headers. I added the javascript into my Masterpage. http://spoodoo.com/stickyheaders-for-sharepoint-update-v3-2-0/
May 03 2019 01:28 PM
@Deleted Thanks! I currently have sticky headers for the top row but not the first column. Is the file available for download here? http://spoodoo.com/products/stickyheaders-for-sharepoint/
Nothing is showing up when I click on this page.
May 04 2019 12:40 AM
May 06 2019 06:13 AM
@Juan Carlos González Martín Thanks! The list is isn't modern - we are using sticky headers for rows already but haven't had luck deploying them for columns so far.
May 06 2019 09:45 AM
Jan 03 2020 12:46 AM
@Arielle Gerstein i'm also trying to freeze 1st column in list and headers but didn't found any solution so far. Have you found anything to resolve this?
Jan 03 2020 04:37 AM
@Shrutika_S Try "Sticky Headers" from Spoodoo.com. I've added it to the Masterpage so it shows up everywhere. http://spoodoo.com/downloads.
Jan 03 2020 06:17 AM
@Shrutika_S I've used sticky headers to freeze the first row in a list, couldn't make it work for the first column.
Jan 07 2020 03:35 AM
@Deleted will this JS code work for modern SharePoint page as script webpart is not available in it?
Jan 07 2020 03:37 AM
Jan 07 2020 03:39 AM
Jan 07 2020 05:12 AM
@Shrutika_S I have not tried this in O365 or Modern Pages as I am currently still on-prem with SharePoint 2016. What I have done was to incorporate it into the Masterpage just before the ending </head> tag. <SharePoint:ScriptLink language="javascript" ID="ScriptLink3" Name="/_layouts/15/CustomScripts/stickyHeaders_3.2.0.js" runat="server" />
I know Microsoft does not want you to alter the Masterpage, so maybe incorporate it via SPFx if you are familiar with it (I'm just learning it now). You could also put the .js file in Site Assets and reference it using the Script Editor Web Part or Content Editor Web Part, but then you would have to do this on every page you need the feature.
Jan 09 2020 03:39 AM
Jan 09 2020 06:43 AM
Sticky headers happens automatically in modern lists on SharePoint O365. You don't need code to make it happen. Your lists must be in modern experience, so you won't see it on classic lists like task or calendars.
May 08 2020 06:29 PM
The original post was talking about freezing columns, not sure why everyone is talking about freezing/sticky headers (header row).
For lists that span wider than 1 screen width (especially when even small columns have a minimum width), freezing columns is quite crucial. Any idea how I can achieve this in modern Sharepoint?
May 12 2020 07:04 AM
There is no way to freeze columns. I have a longer post higher up in the thread on things you can do to minimize the amount of L-R scrolling. One of the benefits of modern UI is you no longer need to have EVERY field showing in the view. Leverage that to minimize horizontal scrolling.
Mar 09 2021 11:47 AM