Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/91.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 列排序以在显示表中包含整个内容_Html_Sorting_Jquery Ui Sortable_Display - Fatal编程技术网

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>