File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic table with sort

 
Anirudh Jhina
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i need a table with expand/collpase rows. it should also support sorting. sorting should first apply to the parent nodes and then its respective children should be sorted. Thanks in advance.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a rule about display names: your display name must consist of a real-sounding first and last name. Nicknames and single names aren't acceptable. You can change your display name here. Thanks for cooperating!

Eric
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How the table look at this:
http://www.activewidgets.com/javascript.forum.3982.0/how-to-sort-a-table.html

Eric
 
Anirudh Jhina
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the info. Was not aware about the naming rules.
 
Anirudh Jhina
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not have the requirement that you pointed at.
In my case i have a row in a table which has child rows in the same table. If a row has a child row then in the first column a + sign will be displayed for expanding it. On clicking on the + sign the child rows are shown.

Assuming we give levels to the rows depending on the level they are at from the root parent.
i.e Row no. 1 will be at level 1
if this row has a child that will be at level 2 and will be row 2 but hidden unless the + button on the parent is clicked.
now if this row2 also has a child that will be at level 3

Now when doing sorting on a column, first all the rows at level 1 should be sorted, then for each level 1 row, it respective level 2 rows will be sorted, for each level 2 its level 3 rows will be sorted and so on....

Thanks in advance
Anirudh
 
David Durman
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might try DynamicTable, a tiny JavaScript library for sorting, filtering and paging
HTML tables. Here is a demo and blog post. MIT licensed.
 
Eric Bresie
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to look at some additional javascript frameworks that provide some datatable functionality.

jQuery UI has some plugins like jqGrid (see Grouping examples) or Datatable that may meet your needs.

Or YUI equivalents.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see someone pulled up a 7 year old thread to pimp there site.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic