Hi,
the list items do have a double click event which you can use. But if you
use the data binding controller, you don't create the list items yourself.
But there is a way to attach a listener to every created list item. You have
to use the controller delegate and supply the configureItem method to attach
the listener:
var data = new qx.data.Array(["a", "b", "c"]);
var list = new qx.ui.form.List();
this.getRoot().add(list);
var listener = function(e) {
alert("double clicked");
}
var controller = new qx.data.controller.List(data, list);
controller.setDelegate({configureItem : function(item) {
item.addListener("dblclick", listener, this);
}});
I guess thats working for you, right? You can try this example in the
playground.
Regards,
Martin
sub wrote:
>
>
> Hi All,
>
> I'm using a form.List to select from a series of row data.
> I want a double click to fire an event so that I can populate a form to
> allow for editing of that row.
>
> I started using form.List instead of a Table to take advantage of the new
> data binding controllers and to simplify the view to the user.
>
> Any pointers - I don't see a double click event like I did in a table cell
> .
>
> Thanks!
> --
> View this message in context:
> http://www.nabble.com/Double-Click-for-form.List-tp25632909p25632909.html
> Sent from the qooxdoo-devel mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register
> now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
View this message in context:
http://n2.nabble.com/Double-Click-for-form-List-tp3720348p3720690.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel