Html 列排序以在显示表中包含整个内容
我使用Html 列排序以在显示表中包含整个内容,html,sorting,jquery-ui-sortable,display,Html,Sorting,Jquery Ui Sortable,Display,我使用sortable=“true”对分页显示表进行列级排序,但当我单击页眉时,它仅对当前页面内容进行排序。当我转到下一页时,内容仍然与以前一样,没有任何排序。单击列标题时,是否有方法对显示表的整个内容进行排序?下面是显示我的显示表的代码 <display:table class="displayTable" id="person" name="persons" requestURI="personDetails" export="true" pagesize="10" requestUR
sortable=“true”
对分页显示表进行列级排序,但当我单击页眉时,它仅对当前页面内容进行排序。当我转到下一页时,内容仍然与以前一样,没有任何排序。单击列标题时,是否有方法对显示表的整个内容进行排序?下面是显示我的显示表的代码
<display:table class="displayTable" id="person" name="persons" requestURI="personDetails" export="true" pagesize="10" requestURIcontext="false">
<display:column style="width: 30%; border: 1px solid #000;" title="Date" sortable="true">
<fmt:formatDate pattern="dd/MM/yyyy HH:mm:ss" value="${person.reportDate}" />
</display:column>
<display:column style="width: 30%; border: 1px solid #000;" property="personName" title="Name" sortable="true"/>
<display:column style="width: 30%; border: 1px solid #000;" property="personAge" title="Age" sortable="true"/>
</display:table>
我有解决办法。在display:table标签中添加sort=“list”属性,以便在排序中包括整个列表,如果不只是当前显示的页面将被排序
<display:table sort="list" class="displayTable" id="person" name="persons" requestURI="personDetails" export="true" pagesize="10" requestURIcontext="false" >
<display:column style="width: 30%; border: 1px solid #000;" title="Date" sortable="true">
<fmt:formatDate pattern="dd/MM/yyyy HH:mm:ss" value="${person.reportDate}" />
</display:column>
<display:column style="width: 30%; border: 1px solid #000;" property="personName" title="Name" sortable="true"/>
<display:column style="width: 30%; border: 1px solid #000;" property="personAge" title="Age" sortable="true"/>
</display:table>
我有解决办法。在display:table标签中添加sort=“list”属性,以便在排序中包括整个列表,如果不只是当前显示的页面将被排序
<display:table sort="list" class="displayTable" id="person" name="persons" requestURI="personDetails" export="true" pagesize="10" requestURIcontext="false" >
<display:column style="width: 30%; border: 1px solid #000;" title="Date" sortable="true">
<fmt:formatDate pattern="dd/MM/yyyy HH:mm:ss" value="${person.reportDate}" />
</display:column>
<display:column style="width: 30%; border: 1px solid #000;" property="personName" title="Name" sortable="true"/>
<display:column style="width: 30%; border: 1px solid #000;" property="personAge" title="Age" sortable="true"/>
</display:table>