Hi everybody, I'm trying to add a checkBox in a table cell and have a result as in the Qooxdoo browser. I use both qx.ui.table.cellrenderer.Boolean() and qx.ui.table.celleditor.CheckBox(). It seems to work but I don't don't see a visual checkBox which I can select or not in my table. Could someone tell me if I forgot anything?
My code is: var cellEditorCheckBox = new qx.ui.table.celleditor.CheckBox(); var cellRendererBoolean = new qx.ui.table.cellrenderer.Boolean(); var tableModel = new qx.ui.table.model.Simple(); tableModel.setColumns(["civility","Name","Age","Boolean"]); tableModel.setColumnEditable(0, true); tableModel.setColumnEditable(1, true); tableModel.setColumnEditable(2, true); tableModel.setColumnEditable(3, true); var table = new qx.ui.table.Table(tableModel); var tableModelColumn = table.getTableColumnModel(); tableModelColumn.setDataCellRenderer(3, cellRendererBoolean); tableModelColumn.setCellEditorFactory(3,cellEditorCheckBox); var tableData = [['','','']]; table.getTableModel().setData(tableData); // And after I add the table to the main container. Thanks for your help!!!! Olivier ZORO-BI ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
