Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: Sortable columns in TreeTable

sstree
Discussion topic

Back to topic list

Re: Sortable columns in TreeTable

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-01 10:55:09 PDT
Message Hi Jason,

Thx for the swift reply.
Missed the subscribe thing, been rectified in the meantime though.

>>Using Tapestry to generate HTML I was looking for something exactly like
>>the TreeTable.
>>
>>
>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.
>
Totally correct. Simplicity before anything else.

>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.
>
That makes two of us.

>Perhaps the table could be in the page N times, with N-1 copies all
>hidden. Clicking on a column header would simply hide the table sorted
>one way and display it sorted another way. That is a lot of data to
>send over the wire, so it would not be fast.
>
>Another way to do it would be to rely on client-side XLST to do sorting
>and transformation to HTML at the same time. But, that only works with
>the most recent browsers.
>
>There is also an issue of how sorting meshes with the tree structure
>itself: do you want to sort multiple rows within each tree leaf? more
>likely you want to sort on some othe column and abandon the tree
>structure.
>
>
At this moment my thoughts are going along the following lines:
Assuming all columns are equal (as in branches are the same as their
leafs from a column content view) clicking on the column would basically
leave the tree intact in its basic structure (unless clicked on the
'level' column, which would sort on the level 1 text only).
Thus any other col click would respect the location of the level-1 col,
get the levels which are *opened* and *only* sort the leaf-rows
underneath the respective branches withing the main level-1.
What I'm basically saying is that within the level-1 branch *all* the
branches remain in the same place! *Only* the leafs can be changed
(within the context of the direct mother branch).
One never abandons the tree structure as such.
Am I making sense here??

TIA,
Fermin DCG




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe@sstr​ee.tigris.org
For additional commands, e-mail: dev-help at sstree dot tigris dot org

« Previous message in topic | 3 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: