| Author |
dynamic table with sort
|
Anirudh Jhina
Greenhorn
Joined: Jul 26, 2005
Posts: 5
|
|
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
Joined: Nov 08, 2001
Posts: 15357
|
|
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
Joined: Nov 08, 2001
Posts: 15357
|
|
How the table look at this: http://www.activewidgets.com/javascript.forum.3982.0/how-to-sort-a-table.html Eric
|
 |
Anirudh Jhina
Greenhorn
Joined: Jul 26, 2005
Posts: 5
|
|
|
Thanks for the info. Was not aware about the naming rules.
|
 |
Anirudh Jhina
Greenhorn
Joined: Jul 26, 2005
Posts: 5
|
|
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
Joined: Sep 12, 2012
Posts: 1
|
|
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
Joined: Apr 05, 2011
Posts: 13
|
|
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
Joined: Nov 08, 2001
Posts: 15357
|
|
I see someone pulled up a 7 year old thread to pimp there site.
|
 |
 |
|
|
subject: dynamic table with sort
|
|
|