Today Martin Wittemann wrote:

> Hey,
> I have never used jqGrid so can tell you much about the integration. But I 
> know qooxdoo and usually its capable of running with all kinds of libraries. 
> If all you need is a plain DIV with an ID, thats an easy thing.
>
> Just create a widget. Widgets are in general a couple of divs. The content 
> element is the one you should use for that to set the attribute. Just take a 
> look at this code:
>
> var w = new qx.ui.core.Widget();
> w.getContentElement().setAttribute("id", "jqGrid");
>
> Thats basically all you need to get a div with an id.
> Hope that helps,
> Martin

one thing to note about qooxdoo is, that it works asynchronously,
so even after generating a widget and adding it to some layout it
will not immediately manifest itself in the DOM tree. You have to
wait for the widget to 'appear' before you make your move.

var w = new qx.ui.core.Widget();

w.addListener('appear',function(){
   w.getContentElement().setAttribute("id", "jqGrid");
   ... do you jqGrid things
},this);

somecontainer.add(w);

cheers
tobi


>
> Am 06.12.2010 um 16:40 schrieb Branko Vukelic:
>
> > Hi, list!
> >
> > Is it possible to use jqGrid in a qooxdoo application, and what would
> > be the fastest way to do this?
> >
> > I assume jqGrid requires a block element with a known id attribute, or
> > something like that. I'm asking this on behalf of a friend who is
> > considering qooxdoo for his project but finds jqGrid indispensable.
> > I've only used qooxdoo for a while, so I couldn't answer myelf. I see
> > qooxdoo doesn't set any id attribute to any of the widgets, so my
> > initial idea to create a window and then shove jqgrid there wouldn't
> > work, right?
> >
> > TIA
> >
> > --
> > Branko Vukeli?
> >
> > [email protected]
> > [email protected]
> >
> > Check out my blog: http://www.brankovukelic.com/
> > Check out my portfolio: http://www.flickr.com/photos/foxbunny/
> > Registered Linux user #438078 (http://counter.li.org/)
> > I hang out on identi.ca: http://identi.ca/foxbunny
> >
> > Gimp Brushmakers Guild
> > http://bit.ly/gbg-group
> >
> > ------------------------------------------------------------------------------
> > What happens now with your Lotus Notes apps - do you make another costly
> > upgrade, or settle for being marooned without product support? Time to move
> > off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
> > use, and manage than apps on traditional platforms. Sign up for the Lotus
> > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
> > _______________________________________________
> > qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
> ------------------------------------------------------------------------------
> What happens now with your Lotus Notes apps - do you make another costly
> upgrade, or settle for being marooned without product support? Time to move
> off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
> use, and manage than apps on traditional platforms. Sign up for the Lotus
> Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to