Hi Uwe,

often you need to extend the framework cell editors to improve them. So in your 
case this could be a way to solve your problem.

Just extend celleditor and include that following member function:

//overridden
createCellEditor : function(cellInfo)
{
        var cellEditor = this.base(arguments, cellInfo);
        
        cellEditor.addListener("changeSelection", evententfunction, this);
}


Now you are able to listen all events of qx.ui.form.SelectBox().

regards

Mustafa Sak

Applications & Integration

1&1 Internet AG
Ernst-Frey-Straße 10
DE-76135 Karlsruhe

-----Ursprüngliche Nachricht-----
Von: soda [mailto:[email protected]] 
Gesendet: Mittwoch, 19. Dezember 2012 01:05
An: [email protected]
Betreff: [qooxdoo-devel] celleditor.SelectBox

Hi,

i added a celleditor.Selectbox to one column of my table.

editor =  new qx.ui.table.celleditor.SelectBox();
...
tcm = this.table.getTableColumnModel();
tcm.setCellEditorFactory(6,editor);
...

How i can fire a event when the selection of the selectboxes changes?

I tried the following code, like for a common Selectbox but it dosn't work.

...addListener("changeSelection", evententfunction, this);

I also tried:

table.getTableModel().addListener("dataChanged", eventfunction, this);

but now i have the problem, that it reacts on every tablecontent-changes and 
not just the selectboxchanges!

Is there a way to solve the problem?

regards
soda

P.S. sorry for bad english




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/celleditor-SelectBox-tp7582330.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely 
access PCs and mobile devices and provide instant support Improve your 
efficiency, and focus on delivering more value-add services Discover what IT 
Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to