Lisp HUG Maillist Archive

Sorting on columns in a capi:list-view

Hello all,

Is there a callback for clicking on a column in a capi:list-view?  I would like to sort the items when a column is clicked on, but I can't figure out if there is a callback or a way to even specify it.  If someone could point me in the right direction, I'd really appreciate it.

Thanks,
Tom

Re: Sorting on columns in a capi:list-view

On Fri, 21 Oct 2005 16:54:50 -0500, Tom Pierce <t.pierce@computer.org> wrote:

> Is there a callback for clicking on a column in a capi:list-view? I
> would like to sort the items when a column is clicked on, but I
> can't figure out if there is a callback or a way to even specify
> it. If someone could point me in the right direction, I'd really
> appreciate it.

For list panels I implemented this in such a way that if you click on
a column header the panel is actually replaced (within the enclosing
interface) by another panel that's sorted accordingly.  But maybe I
don't see the wood for the trees and there's an easier way to do it.

Another option would be to look at Dmitri's YstokGrid:

  <http://lisp.ystok.ru/ygrid.html>

Cheers,
Edi.


Updated at: 2020-12-10 08:50 UTC