Tobias Koller (GERMO GmbH) schrieb:

Hi,

 

i’m playing around with the dynamic cellrenderer.

It works for the usual cellrenderer (default, password,…) but there is a problem when I want to use

a checkbox-renderer inside the dynamic-cellrenderer.

 

Usually I handle checkboxes in a table like this:

 

if (this.getTableColumnModel().getDataCellRenderer(column) instanceof qx.ui.table.cellrenderer.Boolean)

{

var value = this.getTableModel().getValue(column, row);

value = !value;

this.getTableModel().setValue(column, row, value);

}

 

 

But with the new dynamic-cellrenderer this is not possible anymore cause

The datacellrenderer is now dynamic and not Boolean.

 

Is there a way to handle this?

 

 

Hi -

I think this would do the trick:

var cellInfo = { 'row' : row, 'column': column };

if (this.getTableColumnModel().getDataCellRenderer(column).createCellEditor(cellInfo) instanceof qx.ui.table.cellrenderer.Boolean)

{

var value = this.getTableModel().getValue(column, row);

value = !value;

this.getTableModel().setValue(column, row, value);

}


Christian
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to