ZK如何使用listcell中的多个组件对列表框进行排序 [英] ZK How to sort a listbox with multiple components in a listcell

查看:173
本文介绍了ZK如何使用listcell中的多个组件对列表框进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在下面的列表框中,我有包含Select和Label组件的listcell。因此,即使listheader应用了sort =auto,它实际上也没有用。任何人都可以帮助找出一种方法,以便对listcell进行排序,非常感谢



In below listbox, i have listcell that contains both "Select" and "Label" component. Hence even the listheader applied sort="auto", it not actually worked. Anyone can help to figure out a way so the listcell can be sorted, thanks a lot

<listbox id="idResultListBox" checkmark="true" vflex="1"  >
                    <listhead>
                        <listheader

                            label="${ labels.result.result }" sort="auto"/>
                        <listheader

                            label="${ labels.result.resultEnteredBy }" sort="auto"/>
                        <listheader

                            label="${ labels.result.resultEnteredOn }" sort="auto"/>
                        <listheader

                            label="${ labels.result.resultAuditedBy }" sort="auto"/>
                    </listhead>
                    <listitem 

                        forEach="${attAuditResultList }"

                        value="${each }"

                        disabled="${ displayMode!='view' and each.auditedDate!=null }"

                        checkable="${ each.auditedDate==null }">
                        <listcell>
                            <select value="${ each.result }" options="${ resultTypeList }"

                                if="${ each.auditedDate==null }" visible="${ each.auditedDate==null and displayMode!='view' }"

                                 />
                            <label value="${ each.result.name }"

                                visible="${ each.auditedDate!=null or displayMode=='view' }" forward="/>
                        </listcell>
                        <listcell>
                            <activeassessor if="${ each.auditedDate==null }" value="${ each.enteredBy }"

                                 />
                            <label value="${ each.enteredBy.name }"

                                visible="${ each.auditedDate!=null }" />
                        </listcell>
                        <listcell

                            label="${ each.enteredDateAsString }" />
                        <listcell label="${ each.auditedBy.name }" />>
                    </listitem>
                </listbox>

推荐答案

{labels.result.result} sort = auto / >
< listheader

< span class =code-attribute> label =
{ labels.result.result }" sort="auto"/> <listheader label="


{labels.result。 resultEnteredBy} sort = auto / >
< listheader

label =
{ labels.result.resultEnteredBy }" sort="auto"/> <listheader label="


{labels.result.resultEnteredOn} sort = auto / >
< listheader

< span class =code-attribute> < span class =code-attribute> label =
{ labels.result.resultEnteredOn }" sort="auto"/> <listheader label="


这篇关于ZK如何使用listcell中的多个组件对列表框进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆