Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: Sortable columns in TreeTable (v1)

sstree
Discussion topic

Back to topic list

Re: Sortable columns in TreeTable (v1)

Reply

Author "F dot Da Costa Gomez" <dcg at fixed dot com>
Full name "F dot Da Costa Gomez" <dcg at fixed dot com>
Date 2003-09-07 12:21:09 PDT
Message Jason Robbins wrote:

>The tree table was just an experiment to take the "super simple"
>approach to the next level of complexity and see how well it turned
>out. I think it is OK so far, but the requirement for each row to have
>a specially named id attribute is a bit ugly. However, that should be
>no problem if you are automatically generating the page.
>
>There is no sorting yet. But, I would be glad to work with you to
>implement that. At this point, I don't have a good idea of how to do it
>while still staying true to the "super simple" approach of having the
>data in a reasonable HTML format to begin with.
>
>
Hi,

Sorry it took somewhat longer but I messed up my code and had to redo
some bits and pieces.
Attached are two zips.
1. Contains an inheritance structure I'm also using in the treeSorter.
Added it so that one can more easily get a feeling for the stuff taking
place in the sort code
2. Should be fairly familiar. It's the sstree in sortable format. Only
the size column is sortable in a sensable way but the rest is basically
no issue.

Usage: just unzip the files to a dir and start-up the files in /pages.

Not everything is finished yet. But that is mainly due to :
- The fact that I am no css guru by any means (hint hint ;-) )
- My JS knowledge is not good enough to figure out why the rows do not
get re-colored (even-odd)
- Again to do with JS, sorting of the <input type="xyz"> stuff does not
work fine yet either.

Sorting of the treenode column can take place on text or id or name or
whatever else one sees fit.
This can be determined in the ExtendedSortableTabl​e::getRowValue()

Any help on these outstanding issues would be greatly appriciated ()as
my knowledge is limited).
As one can see the SortableTable is derived from an existing sort class.
Details can be found in the source, as per GPL.

I hope this is usefull for others as well.

Cheers,
Fermin DCG
Attachments

« Previous message in topic | 5 of 7 | Next message in topic »

Messages

Show all messages in topic

Sortable columns in TreeTable "F dot Da Costa Gomez" <dcg at fixed dot com> "F dot Da Costa Gomez" <dcg at fixed dot com> 2003-09-01 09:11:55 PDT
     Re: Sortable columns in TreeTable anoncvs anonymous CVS access 2003-09-01 10:19:38 PDT
         Re: Sortable columns in TreeTable "F dot Da Costa Gomez" <dcg at fixed dot com> "F dot Da Costa Gomez" <dcg at fixed dot com> 2003-09-01 10:55:09 PDT
         Re: Sortable columns in TreeTable "F dot Da Costa Gomez" <dcg at fixed dot com> "F dot Da Costa Gomez" <dcg at fixed dot com> 2003-09-03 07:34:44 PDT
         Re: Sortable columns in TreeTable (v1) "F dot Da Costa Gomez" <dcg at fixed dot com> "F dot Da Costa Gomez" <dcg at fixed dot com> 2003-09-07 12:21:09 PDT
             Re: Sortable columns in TreeTable (v1b) "F dot Da Costa Gomez" <dcg at fixed dot com> "F dot Da Costa Gomez" <dcg at fixed dot com> 2003-09-07 13:42:46 PDT
                 Re: Sortable columns in TreeTable (v1b) anoncvs anonymous CVS access 2003-09-10 10:21:53 PDT
Messages per page: