[Rails-spinoffs] Re: table sorting/manipulation library?

Felipe Gasper
Thu, 15 Sep 2005 22:34:07 -0000

Quoth Michael Schuerig on Fri, 16 Sep 2005...

> On Friday 16 September 2005 01:45, Laurie Harper wrote:
> > On 15-Sep-05, at 9:04 AM, Martin Bialasinski wrote:
> > > On 15/09/05, Felipe Gasper <gasperfm@uc.edu> wrote:
> > >> In response to these mails, the demo now offers multi-sort as
a
> > >> checkbox-enabled option; the default is single-sort.
> > >
> > > It seems to be broken. Check multisort, sort by name, sort by
age.
> > > sorting by age will just turn the Stallmanns around.
> >
> > As opposed to what? That seems like the right behaviour to me...
> > However, if I change my mind and want to sort by age then name,
I''m
> > stuck; tri-state sorting as you suggested would help, but I think
> > multi-sort mode is always going to be a bit confusing since
there''s
> > no indication of what the column sort order is. Or is that an option
> > that could be turned on?
>
> Another option: Allow reordering of columns and prioritize columns from
> left to right.
>
> That''s what I''m doing in BoilerPlate, although the
sorting is
> server-side. It''s logical, but I''m afraid that it will
confuse users
> nevertheless.
>

So you''re saying make it able to drag-drop columns?

Hmm.....that''d be hard to implement in this library because it
accomodates
headers that span multiple columns and multiple rows.

However, it would seem feasible, should someone want to do this, to apply
drag/drop code from elsewhere to my code, as long as you''re doing
one-header-per-column. I didn''t mention this last night, but this table
library is almost completely dynamic: add/subtract rows, headers,
columns, and the library doesn''t blink twice. (Just re-stripe if you
add
rows.)

Does anyone have interest in drag/drop columns with this library? If
so, let me know; the code would require some modification that I''m
otherwise hesitant to put in.

-FG

--
Felipe M. L. Gasper, conductor/singer
http://felipegasper.com

Judge ideas, not people.
Love people, not ideas.