function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pratap narwalpratap narwal 

Freeze Column functionality in visualforce pageblock table

 Hi,

I am working on a pageblocktable in visualforce. This Pageblocktable has multiple columns, i want to freeze the first column of the table. So that while horizontal scrolling, the first column will remain freezed

Is there any way i can do it with visulalforce, CSS and javascript?.

I am not suppose to do it with Jquery.

Thanks

bob_buzzardbob_buzzard
What is the reason why you can't use jQuery?  That would be the simplest solution using the floaThead (http://mkoryak.github.io/floatThead/) plugin - I've used that several times in the past.

There's a JavaScript/CSS solution explained at:

http://anaturb.net/csstips/sheader_js2.htm