On Sun, Sep 11, 2011 at 16:14, furiouseskimo <[email protected]> wrote:

> Hi
>
> I'm new to Qooxdoo and I find it really great. As someone with experience
> of
> windows application programming, it is the first web application tool that
> I
> have really enjoyed using.
>

Hi Shane. Welcome to qooxdoo!


> I have a question on the Progressive Table widget though. I am interested
> in
> using this widget because I have read that it is possible to render a table
> with varying row heights.
>
> There is an example of this in the demobrowser
> (
> http://demo.qooxdoo.org/current/demobrowser/#progressive~ProgressiveTable_VarRowHeight.html
> )
> but it seems to be that the varying row heights are driven by the differing
> sizes of the images.
>
> If you move the example to the Playground, where the images are not found,
> the rows of the table are all the same height. Is there a way to set the
> row
> height of each row of the Progressive Table from an array of values or
> something similar?
>

In that example, the rows vary in height based on the data that is rendered
in each row. In particular, the image renderer is specified for column one,
with this code:

// Tell the row renderer to use an image renderer for column 1 var r = new
qx.ui.progressive.renderer.table.cell.Image(); rowRenderer.addRenderer(1, r);

It sounds like you'd like varying row heights based on something else. If
you look at how the cell renderers are implemented, you'll see that each
cell in a row is passed the height, determined so far by previous cells in
the row. Any cell renderer can set the height to something larger. See the
documentation in the shaded area here:
http://demo.qooxdoo.org/current/apiviewer/#qx.ui.progressive.renderer.table.cell.Abstract

To accomplish your goal, you need simply create a cell renderer that selects
the minimum row height based on something in the data model.

You might also look at qx.ui.virtual.* to see if something there meets your
needs. Although I wrote "progressive" and expect it to still be an
appropriate tool for some applications, many of its benefits are now being
provided by the much more modern "virtual" infrastructure with data binding.
(A full replacement for a virtual table, however, has not yet been
implemented.)

Cheers,

Derrell
------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to