File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URGENT-Change cell width

 
Vrunda Joshi
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I worked on this.....
look at this forum link
http://www.coderanch.com/t/113462/HTML-JavaScript/frames-scrolling-spreadsheet
Eric
 
Yuriy Fuksenko
Ranch Hand
Posts: 413
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic