[EMAIL PROTECTED] schrieb:
> Sebastian Werner <[EMAIL PROTECTED]> writes:
> 
>> * the editing feature seems not to work, after editing a cell, the cell 
>> is empty or shows NaN.
> 
> I had a few minutes, so I looked into this.  The problem is here:

Fine.

> 
>     getCellEditorValue : function(cellEditor)
>     {
>       // Workaround: qx.ui.form.TextField.getValue() delivers the old value,
>       // so we use the value property of the DOM element directly
>       var value = cellEditor.getElement().value;
> 
>       if (typeof cellEditor.originalValue == "number") {
>         value = parseFloat(value);
>       }
> 
>       return value;
>     }
> 
> The value retrieved from cellEditor.getElement().value is null.  I recall you
> were doing some work with getting updated values of a TextField, but just
> calling getValue() still retrieves the old value.  What is the new way of
> retrieving the changed value of a TextField?

It's much easier than before. You need to enable "liveUpdate". After 
this you always have the current/runtime/computed value inside 
getValue(). So it should be possible to replace:

var value = cellEditor.getElement().value;

with:

var value = cellEditor.getValue();

afterwards.

Sebastian

> 
> Derrell
> 
> -------------------------------------------------------------------------
> 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


-------------------------------------------------------------------------
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