disablink default Chackbox on a listbox (chekmark=true)
19 Jan 2012 09:35:15 GMT
20 Jan 2012 02:24:39 GMT
20 Jan 2012 02:24:39 GMT
Hi delta2000,
Try this
<listitem ...> <attribute name="onCreate"> self.getListbox().addItemToSelection(self); self.setCheckable(false); </attribute> </listitem>
Regards,
ben
ZK - Open Source Ajax Java Framework
Hi,
I'm trying to disable/render not visible the default checkbox on a listbox (with checkmark=true)
according to my business logic.
I use a model to populate the listbox and I'm unable to reach the Checkbox object to set it disabled
or not visible.
Do you have suggestions ?
<listbox id="listaContiCliente" checkmark="true" multiple="true" height="440px" width="1210px"> <listhead sizable="true"> <listheader width="50px" /> <listheader width="180px" valign="middle"> <vbox align="center"> <button id="codiceClienteButton" label="Azioni su codice soggetto" popup="azioniPopupCodiceCliente" /> </vbox> </listheader> <listheader width="165px" sort="auto" forward="onSort=onSortByColumn(codiceCliente)"> Codice soggetto <custom-attributes exportOnCsv="true" /> <custom-attributes headerLabelOnCsv="Codice soggetto" /> <custom-attributes valueFieldNameOnCsv="codiceCliente" /> </listheader> </listhead> <listitem self="@{each=aggregazioneFatture}" value="@{aggregazioneFatture}"> <listcell> <image src="/img/credito/t.gif" tooltiptext="Già in carico a telesollecito parallelo" visible="@{aggregazioneFatture.inTelesollecitoParallelo}" style="cursor:default" /> </listcell> <listcell> <hbox> <image src="/img/filtered.gif" tooltiptext="${tooltipA}" forward="onClick=onAssegnaFiltro" style="cursor:pointer" /> </hbox> </listcell> <listcell> <label value="@{aggregazioneFatture.codiceCliente}" /> </listcell> </listitem> </listbox>Thanks,
Maurizio