Freeze rows in sharepoint list

Copper Contributor

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

 

4 Replies
I'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.

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.

haha, well played, touche!
Thanks, 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?