0

Hide column in table

asked 2010-05-28 03:47:12 +0800

vinhvo gravatar image vinhvo
369 3

I have a table with many columns . Therefore the labels of each column was partially hidden. Is there anyway to auto change line in column table ?

Thank you.

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2010-05-28 03:55:12 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Hi vinhvo
Could you post your sample code ?

link publish delete flag offensive edit

answered 2010-05-28 04:23:58 +0800

vinhvo gravatar image vinhvo
369 3

<grid mold="paging" pageSize="10" id="myGrid" fixedLayout="true" >
				<columns sizable="true">
					<column label="Column name"></column>
                                       ....
				</columns>
				<rows></rows>
</grid>

I have many columns , there fore the header/label of the column was partially hidden. Is there anyway to auto break line of the column's hear automatically ?

link publish delete flag offensive edit

answered 2010-05-28 04:47:11 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Only label component has multiline attribute
you have to use label

<grid>
	<columns sizable="true">
		<column><label  multiline="true" onCreate='self.value="aa\nbb"'/></column>
		<column label="Content"/>
	</columns>
</grid>

link publish delete flag offensive edit

answered 2010-05-28 05:32:41 +0800

vinhvo gravatar image vinhvo
369 3

Thank you. But the label texts I read from database and they change all the time. However, The grid seems to hide labels randomly. I thought It might be hard to achieve, so I use tooltip if the user wants to know what the text is.
But your post were very useful in other case.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-05-28 03:47:12 +0800

Seen: 664 times

Last updated: May 28 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More