Forum Discussion
Anisha Ashokan
May 19, 2017Copper Contributor
Freeze rows in sharepoint list
Hi Everyone,
I have about 100 items in my sharepoint list.I have a requirement wherein the list header and first three rows has to be freezed on scrolling down through the list.I could freeze the header row using javascript.Can someone suggest me how can I achieve the same for first three rows in list.
Regards
Anisha Ashokan
- Richard BourkeIron Contributor
I would drop 2 list webparts on to the page, the first webpart, modify the view to show the first 3 rows.
The second webpart, modify the view to show the rest of the rows.
- DomNBrass Contributorhaha, well played, touche!
- Richard BourkeIron ContributorThanks, I guess I'm good at avoiding writing code :-) . Although.. thinking about it, not sure it addresses the initial freezing requirement. Maybe drop the 2nd webpart in a scrollable DIV on the page?
- DomNBrass ContributorI've used http://spoodoo.com/products/stickyheaders-for-sharepoint/ before. I'd imagine you could modify it to do what it does and also grab the top 3 (with enough coffee) using some td:first-child & td:nth-child(n) gymnastics.