i want to create some tooglebuttons inside a list. everything works fine, but how can i make an event, that deselect all other tooglebuttons without the clicked?

i try this

                    var j = e.getContent(); // Result ajax request
                    for (row = 0;row < j["data"].length;row++) {
this.buttons[row] = new qx.ui.form.ToggleButton(j["data"][row]["title"]).set({
                            toolTipText : j["data"][row]["title"]
                            });
this.buttons[row].setUserData("SHOPID",j["data"][row]["SHOPID"]);

this.buttons[row].addListener("click", function(e) {

//alert(this.buttons[row].getUserData("SHOPID"));
                            },this);

                        shoplist.add(this.buttons[row]);
                        if (row == 0 ) {
                            shoplist.getChildren()[row].setValue(true);
                            }
                        }


my problem is the listener. when i tryto access the clicked button via the array, he dont know the row number, when i add the buttons instead this and access inside the listener via this, it worksbut i cant access the list/other buttons. Or is their a option to access the parent object of an tooglebutton object?
or some other idea?


thank you

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to