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)?
Thanks,
Oleksiy
> On Mon, Sep 22, 2008 at 3:05 PM, Oleksiy Golovko <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Derell,
>
> I'm looking at the RpcExample>RemoteTableModel class (from contrib) and
> still don't understand a bit how it fits my task. Actually, I want
> rather simple things:
>
> 1. set table data/header (all at once)
> 2. hide first N columns
> 3. make all other columns have same width
>
> So i don't understand a bit why Simple model can't do the job for me...
> and how Remote model could help? Could you please explain in more
> details?
>
>
> Ok, if those are your requirements, then you don't need the Remote
> model. You indicated that you were pass JSON and I inferred that you
> were getting the data via some remote request, but it sounds like your
> requirements are simpler.
>
> You have one constraint that may be difficult to deal with, though.
> Once you set the number of columns, you can't easily change that. In
> your constructor, you're setting one column (with an empty heading).
> You can't, then, call setColumns() in your setData() method and hope to
> provide it with a new number of columns. The note in the API
> documentation for setColumns() has this to say about it:
>
> * Note: You can not change the _number_ of columns this way. The
> number
> * of columns is highly intertwined in the entire table operation,
> * and dynamically changing it would require as much work as just
> * recreating your table. If you must change the number of
> columns
> * in a table then you should remove the table and add a new one.
> *
>
> So you'll want to either determine how many columns you need (and always
> have that many, even if some or even most are not visible), or destroy
> the table and instantiate a new one with a different number of columns.
>
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel