Reputation: 11
I have a table in sharepoint with 40 columns. I need a javascript code for freezing first column. i.e., when horizontal scroll-bar is moved, first column remain freezed.
Upvotes: 1
Views: 1529
Reputation: 273
What does "...table in sharepoint..." mean?
This sounds more like a CSS question even though JavaScript will likely be the mechanism that applies the necessary styles. If you have a table with 40 columns you may want to rethink your UI anyway. If this isn't possible, perhaps you could have two tables, one to hold the first column and the other to hold the remaining 39 (which could be placed in a div and made to scroll horizontally).
Upvotes: 2