Hi Jim,
> On textfields, you can set the maximum amount of characters that the
> user is allowed to enter (setMaxlength), but I don't see any way to
> set this for a cell in a table. Since this data is going back into a
> database, I need to restrict the amount of data that is entered. If I
> have overlooked this let me know.
>
You didn't overlook anything. You cannot do it using the cell editor
API. You can however simply subclass the TextField cell editor and
override "createCellEditor" like this:
createCellEditor : function(cellInfo)
{
var cellEditor = this.base(arguments, cellInfo);
cellEditor.setMaxLength(150);
return cellEditor;
},
Best Fabian
--
Fabian Jakobs
JavaScript Framework Developer
1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
Telefon: +49 721 91374-6784
[email protected]
Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver
Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel