我在我的代码中使用蒲公英数据表。表格正确,但没有排序功能。
<datatables:table id="schools" data="${selections}" row="school" theme="bootstrap2" filterable="true" sortable="true"
cssClass="table table-striped" pageable="false" info="false" export="pdf">
<datatables:column title="Name" cssStyle="width: 40%;" display="html">
<spring:url value="/schools/{schoolId}.html" var="schoolUrl">
<spring:param name="schoolId" value="${school.schoolId}"/>
</spring:url>
<a href="${fn:escapeXml(schoolUrl)}"><c:out value="${school.schoolName} ${school.suburb}"/></a>
</datatables:column>
<datatables:column title="SchoolName" display="pdf" >
<c:out value="${school.schoolName} ${school.streetName}"/>
</datatables:column>
<datatables:column title="Rating" >
<c:out value="${school.rating}"/>
</datatables:column>
<datatables:column title="StreetName" property="streetName" cssStyle="width: 30%;"/>
<datatables:column title="Suburb" property="suburb" cssStyle="width: 15%;"/>
<datatables:column title="Telephone" property="phone" cssStyle="width: 15%;"/>
<datatables:export type="pdf" cssClass="btn" cssStyle="height: 25px;" />
</datatables:table>
有人可以帮忙吗?
- 的Pankaj