On Tue, Sep 23, 2008 at 8:09 AM, Oleksiy Golovko <[EMAIL PROTECTED]> wrote:
> Derrell,
>
> Thank you very much about pointing to the API article, I should have
> read it myself before asking. Btw, what about changing entire table
> model? Is restriction the same (I mean persistent column count)?
Unfortunately, yes. There is currently no easy way to change the number of
columns in a table. It's not just a table model issue; rather, the number
of columns propagates itself into numerous subclasses used by Table, making
changes to the number of columns very difficult. If you need varying
numbers of columns and you can (a) define a maximum, then create your table
with the maximum number and hide all that aren't currently needed.
Alternatively, you can (b) destroy the table and create a new one.
If you go with option a, I believe there's an event that's dispatched when
the top-right column visibility button is pressed. If you listen on that
event, you may be able to alter the menu and have it only display those
columns which are relevant at the time.
Derrell
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel