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-03 07:34:44 PDT
Message Hi,

>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.
>
Well, how does this sound.
Rather than going for the all silly functionality version I suggest a
more reasonable approach, tackling issues 1 at a time.

>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.
>
Unless a refresh takes place on the server this is not required at all.
I would rather stay on the client 4 as long as I can so that would imply JS.

>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.
>
That's why JS would probably be a better bet, combined with the DOM.

>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.
>
Yep, leaf the tree structure as it is and just sort the lowest level leafs.
The thing I had in mind (and am testing with) is the following:
- surround the rows containing a set of 'same level' *leafs* with a
level indication <tbody id="x-y-z">
- If a node (collapsed) has got leafs they are just that leafs. For now
I would not consider mixing the branches and the leafs
- all the rows are structured the same
- If a sort is done on a column the sort routine goes through all all
the tbodies and sorts them seperately

What the opinion on this as a first effort?

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 | 4 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: