Kenneth Tilton schrieb:
> I need to have a remote table with one of the cell being an arbitrary 
> qooxdoo layout, probably a composite container and a grid layout. Is 
> there any way to do this?
>
> Currently I am using the Html cellrender but it is pretty ugly and I 
> think I will get better layout from a qoodoo structure. Fixing up the 
> HTML is my last resort, but is there any way to go with a qx-based cell?
>
> I am thinking I should subclass the Abstract cellrender, then build the 
> grid, then somehow get the resulting Html and return that in an override 
> of createDataCellHtml.
>
> Would that work? If so, how do I get the HTML from the built qx grid?
>
>   
Hi Kenny,

I think there are ways to do this but I'm not sure if you will be happy 
with the performance. This is how you could do it:

1. create your grid widget and add it to the document at a hidden place.
    this.getRoot().add(grid, {left: -1000, top: -1000});

2. Configure the widget as you need it.

3. Make sure everything is rendered by manually flushing the element and 
layout queues:
    qx.ui.core.queue.Manager.flush();

4. Steal the generated HTML:
    var html = grid.getContainerElement().getDomElement().innerHTML;

You will have to repeat the steps 2-4 in the createDataCellHtml method. 
Please note that this only copies the HTML and no event listeners. 
Interaction with these table cells is not possible.

Best Fabian

-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim 
Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to