简体   繁体   English

如何在列表框zk中添加条件复选框

[英]how to add conditional checkbox in listbox zk

How to add conditional checkbox in listbox and this function should also work for select all functionality, we are displaying 25 items in checkbox should not be displayed for some items and when we select main checkbox then all checkbox should be selected. 如何在列表框中添加条件复选框,并且此功能也应适用于选择所有功能,我们在复选框中显示25个项目,对于某些项目不应该显示,当我们选择主复选框时,应选中所有复选框。

For example, I have to list of image icons in listbox like image icon of PDF, jpg, gif, msword and excel etc. and the checkbox should appear only with PDF image icon and msword image icon, checkbox should not appear with other image icons. 例如,我必须在列表框中列出图像图标,例如PDF,jpg,gif,msword和excel等图像图标,并且复选框应仅与PDF图像图标和msword图像图标一起出现,复选框不应与其他图像图标一起出现。 Also one checkbox shuld be in the header of listbox, the function of header checkbox like:- when we select the header checkbox then all checkboxes should be selected which appears with the PDF image icons. 列表框的标题中也应有一个复选框,标题复选框的功能如下:-当我们选择标题复选框时,应选中所有复选框,并带有PDF图像图标。

在此处输入图片说明

See ZK forum Discussion for Conditional Checbox 请参阅ZK论坛中有关条件Checbox的讨论

According to this discussion you have to implement your own Checkbox in this case rather than using default checkbox of Listbox. 根据此讨论,在这种情况下,您必须实现自己的Checkbox,而不是使用Listbox的默认复选框。 This will easily resolve your issue. 这样可以轻松解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM