Menu

Make All columns Sortable

Help
Sid
2005-04-05
2012-10-08
  • Sid

    Sid - 2005-04-05

    is it possible to make columns sortable without useing column tags?

     
    • Matt Raible

      Matt Raible - 2005-04-05

      No, I don't believe this is possible.

       
    • Sid

      Sid - 2005-04-05

      Thanks,
      i sloved it this way by adding columns add runtime:

      <display:table name="LIST" sort="list" id="rowid" >
      <%
      OrderedMap row = (OrderedMap) rowid;
      MapIterator it2 = row.mapIterator();
      while (it2.hasNext())
      {
      String key = (String)it2.next();
      Object value = it2.getValue();
      %>
      <display:column title="<%=key%>" sortable="true" headerClass="sortable"><%=value%></display:column>
      <%

          }
      

      %>
      </display:table>

      any feedback?

       
    • Christopher K Koenigsberg

      Presumably your row.mapIterator() had better contain the same number of columns, for each row in the table?

       

Log in to post a comment.

MongoDB Logo MongoDB