0

Problem with grid

asked 2008-08-04 08:29:18 +0800

ramisyuanbo gravatar image ramisyuanbo
36

It seems the overall with of a grid is fixed after it's drawn for the first time.
Originally my grid may has as many as 100 columns.
However, later it's reduced to have 30 columns, but the overall width of the grid remain unchanged, and each column takes up much more width.
How to avoid this?

And would any one take a look at my 3 questions the end of this page ? Thank you so much!

delete flag offensive retag edit

5 Replies

Sort by » oldest newest

answered 2008-08-14 07:52:40 +0800

christian gravatar image christian
136 2 4

Hi ramisyuanbo ,

have you solved this problem?

i hit the same problem with listbox. then i mentioned here in the forum the grid is used und tried it with the grid - same issue... ;(

cheers,
chris

link publish delete flag offensive edit

answered 2008-08-14 11:07:54 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi all,

Could you provide a simple sample or record a video, which can let us clarify the issue?

link publish delete flag offensive edit

answered 2008-08-15 10:36:33 +0800

lovetide gravatar image lovetide
169 1 7

I have exactly the same problem too:

Here is my column defination:

	<checkbox id="usePaging" label="分页显示" checked="false" onCheck="SwitchPagingView()"/>
	<listbox id="lbCallLog">
		<listhead>
			<listheader label="CallID" width="50px"/>
			<listheader label="主叫" width="80px"/>
			<listheader label="被叫" width="100px"/>
			<listheader label="开始时间" width="100px"/>
			<listheader label="结束时间" width="100px"/>
			<listheader label="入中继"/>
			<listheader label="出中继"/>
			<listheader label="计费方式"/>
			<listheader label="计费次数"/>
			<listheader label="时长(秒)" width="30px"/>

			<listheader label="费用"/>
			<listheader label="号码匹配"/>
			<listheader label="单价(分)"/>
			<listheader label="基础时长"/>
			<listheader label="基础价格"/>
		</listhead>
	</listbox>

I want to make some column width be fixed, but when data is populated, the column size is changed, and some column even disappeared.

And here is the screenshot shown this issue:
http://95803.com/download/misc/zk-column-width-issue.png

link publish delete flag offensive edit

answered 2008-08-15 10:56:09 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Would you try the fixedLayout property of the listbox to be true?

link publish delete flag offensive edit

answered 2008-08-18 03:25:32 +0800

lovetide gravatar image lovetide
169 1 7

I tried fixedLayout="true", and it works ok now.

But how the column width is calculated when fixedLayout property is not set ? Does it related font-size CSS attribute?

My CSS defination of ZK:

* {
	font-size:	12px;
	font-family:	'宋体';
}

html {height:100%}

fieldset {
	margin: 4px;
	padding:	8px;
	/*
	border:	1px double green;
	border-bottom:	1px double green;
	background-color:	#EEFFEE;
	*/
}

legend {
	font-size:	12px;
	font-weight:	bold;

	/*
	border:	1px dashed;
	width:	80%;

	color:	white;
	background-color:	darkblue;
	*/

	margin-left:	2em;
	padding-left:	1em;
	padding-right:	1em;
}

p, div, span, label, a, li, dt, dd, input, textarea, pre, body, td {
	font-family:	'宋体',Verdana, Tahoma, Arial, serif;
	font-size:12px; font-weight: normal;
}

div.head-cell-inner, th
{
	font-family:	'宋体';
	font-size:	12px;
}
td.mwt-overlapped
{
	font-family:	'宋体',Verdana, Tahoma, Arial, serif;
	font-size:12px; font-weight: normal;
}

button {
	font-family:	'宋体',Verdana, Tahoma, Arial, serif;
	font-size: 12px; font-weight: normal;
}

.tab, .tab a, a.tab {
	font-family:	'宋体',Tahoma, Arial, Helvetica, sans-serif;
	font-size: 12px; font-weight: normal; color: #300030;
}
.tab a, .tab a:visited, a.tab, a.tab:visited {
	text-decoration: none;
}
.tab a:hover, a.tab:hover {
	text-decoration: underline;
}
.tabsel, .tabsel a, a.tabsel {
	font-family:	'宋体',Tahoma, Arial, Helvetica, sans-serif;
	font-size: 12px; font-weight: bold; color: #500060;
}
.tabsel a, .tabsel a:visited, a.tabsel, a.tabsel:visited {
	text-decoration: none;
}
.tabsel a:hover, a.tabsel:hover {
	text-decoration: underline;
}

.listbox-fake {
	font-size:	12px;
}

.listbox-head, .listbox-head table {
	font-family:	'宋体';
	font-size:	12px;
}

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: 2008-08-04 08:29:18 +0800

Seen: 190 times

Last updated: Aug 18 '08

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