Derrell,
I really appreciate the reply. I was looking at your solution for
hidden rows, and I'm trying to decide how to proceed with our
implementation. We really need tables to be able to filter out rows, but I
am hesitant to follow the same method you have described. Since we need this
to occur in all tables and not just TreeVirtual, I would either have to
modify the Table object (I'd guess qx.ui.table.model.Simple) or create a
specialized subclass of Table with added functionality to filter records.
Our current application is already running into some performance issues in
IE6, so I'm hesitant to add another full array of data to each table object.
Do you think I could add something like a _hiddenArr to the
SimpleTableModel (or perhaps create a more complex table model for this).
Instead of having _hiddenArr be a duplication of the data, it could have a
length of _rowArr.length. By default, all the values would be null, and a
setRowHidden function could swap values. I assume I would have to modify
something in the rendering or data fetching to make sure the hidden rows
would be skipped when the table is rendered. I definitely don't know where
the best place to skip hidden records would be in the table code. I would
also have to make sure that _hiddenArr would stay sorted in the same way
that _rowArr is. I feel like I'd have to create more accounting to make sure
that this approach worked, but it would have a smaller memory footprint. Any
thoughts?
Thanks,
-Dan
Derrell Lipman wrote:
>
> Dan, you're on the right track!
>
> TreeVirtual maintains two sets of data. _nodeArr contains *all* rows,
> whether visible or not. _rowArr contains only those rows which are
> visible. _rowArr is rebuilt whenever there are any changes to
> visibility, or when rows are added or deleted.
>
> Look at the method setData() in SimpleTreeDataModel.js, and in
> particular, the function within that called inorder(), which rebuilds
> the _rowArr array. This may seem a bit inherently slow, but it turns
> out that with 5000+ nodes, the time to rebuild _rowArr is still fairly
> close to unnoticeable.
>
> Cheers,
>
> Derrell
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
View this message in context:
http://www.nabble.com/How-do-I-hide-table-rows-in-the-table-class--tf4210436.html#a12046423
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel