Sebastian,

That worked great. 

Thank you

Regards

Ram

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sebastian
Werner
Sent: Monday, March 27, 2006 6:59 AM
To: [email protected]
Subject: Re: [qooxdoo-devel] Adding a tree to a grid layout

Please try to add the grid layout to the document, before adding the 
tree to the grid itself.

Sebastian


Ram Venkataraman schrieb:
> Hi All,
> 
>  
> 
> I am trying a simple example of adding a tree to a grid layout. Here is 
> the sample I am using the following script.
> 
> When I run it I get an error in the debug console.
> 
>  
> 
> 000187:Failed to execute "_modifyParent()":Modification of property 
> "parent" failed with exception(propValue.getParent() has no properties)
> 
>  
> 
> It does not seem to affect the behavior of the tree.
> 
>  
> 
>  
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> 
> <html>   
> 
> <head>
> 
>       <script type="text/javascript" 
> src="/plebis/scripts/qooxdoo.js"></script>
> 
>       <link type="text/css" rel="stylesheet" 
> href="/plebis/css/demolayout.css"/>
> 
>       <title>Insert title here</title>
> 
> </head>
> 
> <body>
> 
>       <SCRIPT type="text/javascript">
> 
>             QxImageManager.setCorePath("/plebis/images") ;
> 
>             QxImageManager.setIconPath("/plebis/themes/icons") ;
> 
>             QxImageManager.setWidgetPath("/plebis/themes/widgets") ;
> 
>             window.application.main = function()
> 
>             {
> 
>                 var plebis_doc =
this.getClientWindow().getClientDocument();
> 
>                 var  cg = new QxGridLayout;
> 
>                 with(cg)
> 
>                 {
> 
>                     setColumnCount(2);
> 
>                     setWidth("auto");
> 
>                     setTop(10);
> 
>                     setRowCount(1);
> 
>                     setHeight("auto");
> 
>                     setLeft(10);
> 
>                     setPadding(8);
> 
>                     setVerticalSpacing(5);
> 
>                     setHorizontalSpacing(5);
> 
>                    
> 
>                 };
> 
>                 cg.setColumnWidth(0,150);
> 
>                 cg.setColumnWidth(1,150);
> 
>                 cg.setRowHeight(0,20);
> 
>                 cg.setRowHeight(0,300);
> 
>                 var  regiontree = new QxTree;
> 
>                 with(regiontree)
> 
>                 {
> 
>                     setLabel("Regions");
> 
>                    
> 
>                 };
> 
>                 var  fldGeorgia = new QxTreeFolder;
> 
>                 with(fldGeorgia)
> 
>                 {
> 
>                     setLabel("Georgia");
> 
>                    
> 
>                 };
> 
>                 regiontree.add(fldGeorgia);
> 
>                 var  fldFlorida = new QxTreeFolder;
> 
>                 with(fldFlorida)
> 
>                 {
> 
>                     setLabel("Florida");
> 
>                    
> 
>                 };
> 
>                 regiontree.add(fldFlorida);
> 
>                 cg.add(regiontree,1,0);
> 
>                 
> plebis_doc.add(cg);

> 
> 
>             }
> 
>         </SCRIPT>
> 
>  
> 
> <div id="demoDebug"></div>
> 
>  
> 
> </body>    
> 
> </html>         
> 
>  
> 
> Any help would be appreciated.
> 
>  
> 
> Regards
> 
>  
> 
> Ram
> 
>  
> 
>  
> 



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to