Controlling Column width

31 views
Skip to first unread message

Yile Ku

unread,
Jan 9, 2012, 11:52:52 AM1/9/12
to JMesa
We are using JMesa for a table. inside an IFrame. The IFrame is a
certain number of pixels wide and we want to tightly control the
column width of each column. I have tried setting the setWidth() of
the column but it looks like the title length overrides the set
width. We need to format the columns exactly to make sure everything
fits.
Does anyone have any pointers for how to do this?
Thanks
Y-

Jeff Johnston

unread,
Jan 10, 2012, 9:06:37 PM1/10/12
to jm...@googlegroups.com
I assume that you are doing that so that you can scroll the body of the table while keeping the header in place? The only good way I know to do that is to define some CSS (forget the syntax right now) on the tbody tag. Unfortunately the last time I looked the browser support was still pretty flaky on some, and not implement on others. It has been a couple years since I have tried it so you might want to do some googling yourself.

To more answer your question there is no way that I know of to make a column header stick to one length.

-Jeff Johnston



Y-

--
You received this message because you are subscribed to the Google Groups "JMesa" group.
To post to this group, send email to jm...@googlegroups.com.
To unsubscribe from this group, send email to jmesa+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jmesa?hl=en.


Yile Ku

unread,
Jan 11, 2012, 9:38:03 AM1/11/12
to jm...@googlegroups.com
Jeff,

Thank you for the reply.  JMesa is a great tool.  The real reason we want to control the column width is that our application has to fit within a certain number of pixels in a frame.  So we have columns of data like dates, prices, quantities, that take up a certain number of digit places, but the column header is making the column much wider than it needs to be for the digits, and we can get the number of columns we need in the frame we have.  

Hope this helps explain why we want to control the column width.
K-
Reply all
Reply to author
Forward
0 new messages