tablesorter icon indicating copy to clipboard operation
tablesorter copied to clipboard

Introduced hierarchical sorting.

Open keyboardDrummer opened this issue 10 years ago • 12 comments

DONE:

  • hierarchical sorting on a regular widgetless table.
  • fixed the widgets when you're not using hierarchical sorting.

TODO:

  • Make the css classes used to define the hierarchy customisable.
  • Test/define/implement how the widgets work when you're using the hierarchy.

Example: http://steenreem.github.io/tablesorter/docs/example-tree-table.html

keyboardDrummer avatar Nov 08 '13 08:11 keyboardDrummer

have a screen shot or demo of this up anywhere?

thezoggy avatar Nov 08 '13 08:11 thezoggy

Here an example: http://keyboarddrummer.github.io/tablesorter/docs/example-tree-table.html

keyboardDrummer avatar Nov 09 '13 19:11 keyboardDrummer

Doh, I broke the auto merge... oh well. I'll start looking at your work for the next update :)

Thanks again for all your hard work.

Mottie avatar Nov 09 '13 20:11 Mottie

Hey Remy!

Sorry, I've been too busy with other projects and minor updates that I haven't gotten around to incorporating this enhancement.

I've been considering adding this as an extension instead of incorporating it into the core since it makes changes to the cache, and the work I have locally for the upcoming version 3 also significantly changes the cache.

Mottie avatar Nov 16 '13 23:11 Mottie

So where's the code for version 3? Is that the development branch? I could also apply my commits based off of your development branch.

On Sun, Nov 17, 2013 at 12:37 AM, Rob G [email protected] wrote:

Hey Remy!

Sorry, I've been too busy with other projects and minor updates that I haven't gotten around to incorporating this enhancement.

I've been considering adding this as an extension instead of incorporating it into the core since it makes changes to the cache, and the work I have locally for the upcoming version 3 also significantly changes the cache.

— Reply to this email directly or view it on GitHubhttps://github.com/Mottie/tablesorter/pull/410#issuecomment-28638685 .

keyboardDrummer avatar Nov 19 '13 11:11 keyboardDrummer

Hey Remy!

The version 3 code I've been working on, I only have locally... and it hasn't been updated with all the changes made recently :unamused:

The development branch was needed to make a version of the plugin that would work with Zepto... I'll try to update the development branch more in the future to more closely match what I have done in version 3. Sorry, it's been really slow going for me - finding time, motivation and no other distractions :P

Mottie avatar Nov 19 '13 22:11 Mottie

Was this ever merged anywhere else or is this a dead PR?

michaelh99 avatar Mar 25 '16 12:03 michaelh99

Hi @michaelh99!

It's not dead. It's still open for reference. This won't get integrated until after this fork of tablesorter gets rewritten, and renamed to Abelt - I just need more free time :disappointed:.

Mottie avatar Mar 25 '16 12:03 Mottie

Hi @michaelh99!

I am nearly new in JQuery and trying to use hierarchical sorting in my project. Unfortunately, sorting only working on the parent rows not the child rows. I have followed what is described here. But no luck. I followed the following steps for hierarchical sorting - Included jquery.treetable.js file Added -

$(".tablesorter")
        .tablesorter({
            theme : 'blue'
        })      
        .treetable({ expandable: true});

And my parent rows have class data-tt-id and child rows have class data-tt-parent-id. I am getting all the class id's dynamically.

Other tablesorter files like - jquery.tablesorter.js have in my project.

Could you please help me to solve this issue please.

Thanks

ronibduk avatar Sep 02 '16 15:09 ronibduk

Hello guys, have some ideas when this pull request will be merged (had the same issue and spend a full day to find the solution, but eventually Remy already fixed it)?

igorrebega avatar Feb 13 '18 10:02 igorrebega

Hi @igorrebega!

I plan to implement something similar to this if and when I ever get around to rewriting the plugin. As it stands now, it would require a big change to the internal cache that would break backward compatibility. So that's why I'm putting it off until the rewrite.

Mottie avatar Feb 13 '18 13:02 Mottie

Any updates on this? It would be really cool to have it, as the demo looks very cool!

Or would any of the other solutions be easier to implement? https://github.com/search?l=JavaScript&q=treetable.js&type=Repositories

mambax7 avatar Jan 25 '22 12:01 mambax7