• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

URGENT-Change cell width

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
i need to have a scrollable table(fixed header part and scrollable contents).
for this i have taken two seperate tables for header and data,i am creating this tables dynamically.so as the data changes,the cell size of the data table changes,but the header table cell size remains the same,so i need to change the header table cells size also as the header columns and the data table cells look mismathched.
is there any way out to change the cell size of header table cells dynamically?
i hope i have made myself clear
thanks in advance
-vrunda
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I worked on this.....
look at this forum link
https://coderanch.com/t/113462/HTML-JavaScript/frames-scrolling-spreadsheet
Eric
 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the simplest way for IE4+ and NS6+ would be to always create your data table with a header, but set style="visibility:hidden;" for a header row (I mean in TR tag) - it will produce one line of emty space, but it should not really affect anything (you can put this fake header at the bottom of the table).
At this case, when you change any fields, you always have correct sizes of all columns, that you could use for the real header piece
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic