Separate column for checkbox in a ListBox

asked 2012-12-08 19:12:04 +0800

Light1988 gravatar image Light1988

Hi everybody!

The file below contains the code to show a select query.

I have a problem to show the checkbox provided by the Listbox component in a separate column. In another Listbox i could put an empty cell and then the checkbox column appeared there but now it doesn't work or i can not find the way to do it. Anyone help?


<?component name="left-menu" macroURI="/macros/leftMenu.zul" inline="true" ?>
	<borderlayout apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('table.TableViewModel')" onCreate="@command('showTableContent')" sclass="zk_borderlayoutMenu">
		<left-menu /> 
		<east size="90%" sclass="zk_rightMenu" >
				<space />
					<label sclass="zk_mainTitle" value="Contenido de la tabla Tabla" />
				<space />
				<listbox model="@bind(vm.contentList)" emptyMessage="No content found" mold="paging" pageSize="19" checkmark="true" multiple="true" sizedByContent="true">
		                        <listhead children="@bind(vm.headerContentList)" >
			                        <template name="children" >
							<listheader label="@bind(each)" sort="auto"/>
					<template name="model" >
					         <listitem  children="@bind(each.rowContent)">
							<template name="children" >
			            		               <listcell label="@bind(each)" />
				<space />
				<groupbox closable="false">
					<image src="img/delete.png" sclass="zk_imageLink"></image>
					<a href="http://www.zkoss.org" label="Borrar seleccionados" sclass="zk_link" />
				<space />				

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2014-02-07 07:54:14 +0800

hansoncry gravatar image hansoncry

I want to achieve the same thing - to put checkboxes inside their own column. Any help would be appreciated.

link publish delete flag offensive edit

answered 2014-02-11 10:26:08 +0800

MVarun gravatar image MVarun flag of India
268 1 6

Hi hansoncry, Try This..

In your ZUL..

<listbox checkmark="true" multiple="true"></listbox>// You'll get Checkboxes.

Set multiple="false" to Get Radio Buttons instead.

Have fun...

M Varun.

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




Asked: 2012-12-08 19:12:04 +0800

Seen: 84 times

Last updated: Feb 11 '14

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