Hi Mustafa, haven't dug in too deep, but at first glance it looks like you're attaching the listener to the cell editor factory, not the editor itself. I think you're supposed to subclass qx.ui.table.celleditor.TextField and modify the createCellEditor method as shown.
Regards, Daniel Mustafa Sak schrieb: > Hi List, > > > > I tried your example to stop editing at > http://qooxdoo.org/documentation/1.0/snippets . > > But console says just: 042894 There is no event handler for the event > 'changeValue' on target 'qx.ui.table.celleditor.TextField[6859]'! > > > > Any suggestion what am I doing wrong? > > > > > > Regards Sak > > > > setColumnRenderer : function(tree, col) > > { > > > > var clazz = this; > > var tcm = > tree.getTableColumnModel(); > > var > propertyCellRendererFactoryFunc = function (cellInfo) > > { > > var > renderer = new qx.ui.table.cellrenderer.Replace; > > > > return > renderer; > > > > } > > > propertyCellRendererFactory = new > qx.ui.table.cellrenderer.Dynamic(propertyCellRendererFactoryFunc); > > > > > > var > propertyCellEditorFactoryFunc = function (cellInfo) > > { > > var tree > = cellInfo.table; > > var md = > tree.getDataModel(); > > var node > = md.getNodeFromRow(cellInfo.row); > > > > var > validationFunc = null; > > > > var > cellEditor = new qx.ui.table.celleditor.TextField(); > > //# Setze > Validierungsfunction, wir verwenden es statt eines Events > > > > > cellEditor.setValidationFunction ( > > function( > newValue, oldValue ) > > { > > > > > if (node.type == 2) > > > { > > > > return oldValue; > > > } > > > var t = newValue.match(/([0-9]{2,2}):{0,1}([0-9]{2,2})/); > > > > > > > if (t != null) > > > { > > > > var H = t[1]; > > > > var M = t[2]; > > > > if (H <=23 && M<=59) > > > > { > > > > var val = H + ":" + M; > > > > return(val); > > > > } > > > > else > > > > { > > > > alert("Please set a valid time!"); > > > > return oldValue; > > > > } > > > > > > > } > > > else > > > { > > > > alert("Please set a valid time!"); > > > > return oldValue; > > > } > > > > }); > > > > > cellEditor.addListener("changeValue", function() > > { > > > cellInfo.table.stopEditing(); > > }, this); > > > > return > cellEditor; > > } > > propertyCellEditorFactory > = new qx.ui.table.celleditor.Dynamic(propertyCellEditorFactoryFunc); > > > > > > for (c=0;c<col.length;c++) > > { > > > tcm.setDataCellRenderer(col[c], propertyCellRendererFactory); > > > tcm.setCellEditorFactory(col[c], propertyCellEditorFactory); > > } > > > > }, > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > > > ------------------------------------------------------------------------ > > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
