|
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=""> <link type="text/css" rel="stylesheet" href=""> <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(" };
regiontree.add(fldGeorgia); var fldFlorida = new
QxTreeFolder; with(fldFlorida) { setLabel(" };
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 |
- Re: [qooxdoo-devel] Re: setData Method for QxListView Kent Olsson
- [qooxdoo-devel] Adding a tree to a grid layout Ram Venkataraman
- Re: [qooxdoo-devel] Adding a tree to a grid layo... Sebastian Werner
