Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

scrollbar javascript

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have create a table with 1 col and 3 rows
the 1st row is title name
the 2nd row is the header row
the 3rd row is the content.

when i scroll the scrollbar to the right at the bottom of the table, the header is also move to right.

i would like to ask,how can i scroll the scrollbar to right,how can i fix the 1st row??
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Li Jenny wrote:i have create a table with 1 col and 3 rows
the 1st row is title name
the 2nd row is the header row
the 3rd row is the content.

when i scroll the scrollbar to the right at the bottom of the table, the header is also move to right.

i would like to ask,how can i scroll the scrollbar to right,how can i fix the 1st row??




try using a static header and then put next two rows in a table with scrollbar.this is not the perfct solution but this is what we did in our project as an alternative.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is not an easy task. You might want to look at something like jqgrid: http://trirand.com/blog/jqgrid/jqgrid.html

One day I should be able to open source my grid when it is fully done.

Eric
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic