OK, I solved it:
I set tableModel.setColumnEditable(columnindex, false) instead of setting it
to true.
It's not necessary to set this value to true, because I'm changing the
values via program code.



westor wrote:
> 
> Hi list,
> 
> one more try to get a solution for my problem:
> 
> I have a table, and I want to change the field-content when I klick
> (preferring single-click) in the cell.
> 
> table.getPaneScroller(0).addEventListener("click", function(e) {
>   // eg. editing a boolean
>   if(this.getTableColumnModel ().getDataCellRenderer(column) instanceof
> qx.ui.table.BooleanDataCellRenderer){
>     var value = table.getTableModel ().getValue(column,row);
>     if(value == true)
>       value = false;
>     else if(value == false)
>       value = true;
>     table.getTableModel().setValue(column,row,value);
>   }
> }
> This works fine, but my problem is a doubleclick: While i'm in the cell it
> shows the value "true" or "false", and after leaving the cell the cell is
> empty.
> To solve my Problem I want to get rid off the doubleclick but don't know
> how.
> I tryed something like this:
> table.getPaneScroller(0).addEventListener("dblclick", function(e) {
>   e.stopPropagation();
>   e.preventDefault();
> })
> 
> but it doesn't work.
> 
> It looks to me like between the click event, which was first, and the
> doubleclick event, another event (???) is upcoming which is responsible
> for cell editing???
> 
> Can someone help?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Events-Problem-in-Table-Click-%280.6.6%29-tf3906363.html#a11077768
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to