Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread alexander.volik
Thanks a lot, Martin!!! -- View this message in context: http://n2.nabble.com/List-with-checkboxes-handle-events-tp4911878p4912902.html Sent from the qooxdoo mailing list archive at Nabble.com. -- Download IntelĀ® Paral

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread alexander.volik
But arrayWrapper.getItem(0) for example get such data: {"$$hash":"t7","$$user_name":"Keyword 1","$$user_chosen":false,"__userData":{"idBubble":"changeBubble|bubble|nb"}} not {"name":"Keyword 1", "chosen":false} -- View this message in context: http://n2.nabble.com/List-with-checkboxes-handle-e

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread alexander.volik
MartinWittemann wrote: > > If yes, you can use the changeBubble event [2] of the model to get every > change in the model. > I have tried this method but the checkbox clicking does not fire the changeBubble event... It fires only after pushing/removing items to model. Also I don't know how can

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread alexander.volik
MartinWittemann wrote: > > You have to tell the model cration to add the bubble events: > http://demo.qooxdoo.org/current/apiviewer/#qx.data.marshal.Json~createModel > The second parameter has to be set to true. > Thanks, it works! MartinWittemann wrote: > > > alexander.volik wrote: >> >> A

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread MartinWittemann
Hi, sure, you get a qooxdoo object containing your keys as properties. The whole rawdata is wrapped in qooxdoo objects (models). arrayWrapper.getItem(0).getName() will return the name for example. Best, Martin -- View this message in context: http://n2.nabble.com/List-with-checkboxes-handle-e

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread MartinWittemann
Hi, alexander.volik wrote: > > I have a qooxdoo object after model creation > var arrayWrapper = qx.data.marshal.Json.createModel(rawData, true); > And i did not find the method to convert this object to array... > The arrayWrapper itself is the data array and can be accessed with getItem for e

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread MartinWittemann
Hello, alexander.volik wrote: > > I have tried this method but the checkbox clicking does not fire the > changeBubble event... It fires only after pushing/removing items to model. > You have to tell the model cration to add the bubble events: http://demo.qooxdoo.org/current/apiviewer/#qx.data.m

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread MartinWittemann
Hello Alexander, you have some options do get that working. I guess you have bound the selection of the CheckBox's to the model like in the online demo [1]? If yes, you can use the changeBubble event [2] of the model to get every change in the model. Within the data of the event is all informatio

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread Fritz Zaucker
You could attach a listener to the event being generated when the checkbox is changed. Look for addListener() in the API and for the event in the checkbox API (I would guess changeSelection, but I am not sure). Cheers, Fritz On Fri, 16 Apr 2010, alexander.volik wrote: > > I have extend

[qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread alexander.volik
I have extended list (with checkbox and label in each line). The list was defined in such way var list = new qx.ui.form.List(); locationKeywordsTab.add(list); var rawData = [{"name":"Keyword 1", "selected":true}, {"name":"Keyword 2", "selected": false}]; var arrayWrapper = qx.data.marshal