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

Freeze panes in VF and in Excel


1. I'm trying to mimic "Freeze panes" as in excel, on a VF page.

I have a VF page that uses the apex : Datatable component.

I would like for the leftmost 3 columns to remain visible even when viewing the far right side of the table.

Any Ideas how I could do this? I considered using two datatables, one next to the other,
but how would I make sure they are vertically synchronized? (scrolling to item 100 on the one list should be reflected on the2nd list).

If you think this is a problematic issue, please consider promoting this idea:

2. I'm trying to have "Freeze Panes" in Excel, when rendering a data table as an Excel file.
I assume there is somekind of Div tag to do that. any thoughts?

Please help.
Thanks in advance.


Message Edited by beener on 01-03-2009 05:25 AM
Ron HessRon Hess
sorry, there is no built in method for doing this, you may have to use a javascript library that has this feature