On Fri, Mar 27, 2009 at 3:52 AM, tsmiller <[email protected]> wrote:

>
> I have a table that uses the simple table model.  Is there an event that is
> triggered when there is a change in the column that is sorted?  I am
> looking
> for something like
>
>                table.getTableModel().addListener("changeInSortColumn",
> function(e) {
>                    var newSortColumn = e.getTarget().getNewColumn();
>                });
>
> How can I tell when the user clicks on a table header and changes the
> column
> that is currently sorted?
>

You can't get all of the information you're looking for from an event, but
you are told, when the various pieces of meta data change, and that includes
when the method qx.ui.table.model.Simple.sortByColumn() is called. The event
is qx.ui.table.ITableModel.EVENT_TYPE_META_DATA_CHANGED and there's no
associated data, so you'll have to look at what, specifically changed.

Fabian's suggestion is probably a better option in this case.

Derrell
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to