Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Horizontal scrolling with fixed columns

 
Venkat Sadasivam
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a table with 10 columns and thousands of rows. When scroll horizontally, the first two columns should stay as it is, the remaining column should scroll (like Excel).

Please let me know some ready made components; or solution got custom code.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A few thousand rows will be an issue with any script that does this because of performance.

I do not know of any free scripts that do it [or do it well]

Eric
 
Venkat Sadasivam
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric, sorry for not being clear on my requirement.

My requirement is to support fixed columns in horizontal scrolling. For example in excel we can fix the first two columns, during horizontal scrolling except the first two columns remaining columns will scroll.

To support thousands of rows we have pagination in place.

Thanks,
Venkat
 
Bas Cost Budde
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
div.scroll-fixcol { float: left; }
div.scroll-body { width: 90%; overflow: auto; }
.scroll td { height: 1.5em; max-height: 1.5em;}
.scroll-body td { text-align: right; padding-right: 0.2em; }

create a table with the fixed columns, put it in a div class="scroll scroll-fixcol";
create a table with the rest of the data, put it in a div class="scroll scroll-body"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic