On Feb 5, 2008 3:15 PM, kanugula <[EMAIL PROTECTED]> wrote:
>
> It took a while to figure out my sorting problem (the good news is I am
> diving into source code and finding my problems).
>
> Ideally, the sortByColumn functionality in Remote.js is enough to fire the
> _loadRowData() function.
> I think it is dispatching a wrong event.
>
> I had to override that method to fire right event in MyRemoteTable.class as
> // overridden
> sortByColumn : function(columnIndex, ascending)
> {
> if (this._sortColumnIndex != columnIndex || this._sortAscending !=
> ascending)
> {
> this._sortColumnIndex = columnIndex;
> this._sortAscending = ascending;
>
> this.clearCache();
>
> // Inform the listeners
>
> this.createDispatchEvent(qx.ui.table.ITableModel.EVENT_TYPE_META_DATA_CHANGED);
> }
> }
>
> It should fire EVENT_TYPE_META_DATA_CHANGED instead of
> EVENT_TYPE_DATA_CHANGED. Can somebody fix the code please?
The current 0.7 (legacy) code _does_ dispatch an
EVENT_TYPE_META_DATA_CHANGED event, and it looks like it's been that
way for a long time. Either I'm not understanding what you're saying
or you may be using an altered or very old version.
Derrell
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel