0

databinding with horizontal checkboxes

asked 2009-02-10 16:46:55 +0800

ld gravatar image ld
15

Hi !

Using the following zul code, I get checkboxes aligned vertically.
X checkbox1
X checkbox2
X checkbox3


<a:bind model="all"/>
<grid id="mygrid">
<rows>
<a:bind _var="thissource"/>
<row >
<a:bind label="thissource.name" checked="thissource.selected"/>
<checkbox/>
</row>
</rows>
</grid>

I'd like to have the same checkboxes but on the same row:
X checkbox1 X checkbox2 X etc...

But I cannot find the trick to do this... Can you help me ?

TIA,
Ludo.

delete flag offensive retag edit

5 Replies

Sort by » oldest newest

answered 2009-02-12 17:36:11 +0800

ld gravatar image ld
15

No ideas ?

link publish delete flag offensive edit

answered 2009-02-13 09:54:31 +0800

A gravatar image A
117 2

I have the same problem

link publish delete flag offensive edit

answered 2009-03-26 13:42:00 +0800

ld gravatar image ld
15

Anybody with a solution ?
Databinding implies vertical stacking ? No horizontal layout is possible ?

link publish delete flag offensive edit

answered 2009-03-27 01:34:04 +0800

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

Hi,

Try the databinding with new syntax as follows.

	<row each="@{thissource}">
		<checkbox  label="@{thissource.name}" checked="@{thissource.selected}"/> 
	</row>

/Jumper

link publish delete flag offensive edit

answered 2010-03-16 21:40:02 +0800

wwjjkk gravatar image wwjjkk
33 1

updated 2010-03-16 21:41:13 +0800

楼上的方法不行啊,楼主是想把checkbox放一行里显示……
貌似只能手动生成checkbox而不能直接用绑定了吧

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: 2009-02-10 16:46:55 +0800

Seen: 545 times

Last updated: Mar 16 '10

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