Hi Dimitri,

you should keep in mind that the boolean cell renderer does only render 
boolean values.

Try the following in playground (0.8.2-SDK):

----
var doc = this.getRoot();

var tm = new qx.ui.table.model.Simple();
tm.setColumns(["one", "two", "three"]);

tm.setData([["1", "2", true],["3","4", "true"],["5","6", false]]); 
//notice the string "true" in second array!

var ta = new qx.ui.table.Table(tm);

var tcm = ta.getTableColumnModel();

tcm.setDataCellRenderer(2, new qx.ui.table.cellrenderer.Boolean());

doc.add(ta, {left: 10,top: 20});
----

So probably you don't have bools in your row 3 but maybe integers or 
strings!?

HTH,

greetings

Stefan


Dimitri Henning wrote:
> Hi, i do have a problem with and just can see my mistake.
> 
> var tcm = table.getTableColumnModel();
> // Display a checkbox in column 3
> tcm.setDataCellRenderer(3, new qx.ui.table.cellrenderer.Boolean());
> 
> doenst matter what i do, i have NO checkboxes.
> for example:
> tcm.setHeaderCellRenderer(2, new 
> qx.ui.table.headerrenderer.Icon("bla.png", "A date"));
> 
> does work!
> 
> No errors, nothing. Ive attached the code.
> Maybe someone can help.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to