Hi Daniel,

On Sunday 18 October 2009 Daniel Hirtzbruch wrote:
> I got an app containing several selectboxes. The first one contains static
> data which is never changed. When the selection on this first selectbox is
> changed, I make a request to get serverside data which adds a dynamic
>  number of ListItems to 2 other selectboxes.
> 
> Now I need to add an event to the 2nd and 3rd selectbox which is fired once
> when the listitems are added. I'm not able to add the event to the
>  request's finish as the event should only be fired in some cases and is
>  added lateron in the app when some other things happen.
> I already tried using the createChildControl Event on the 2nd and 3rd
> selectbox but this event never seems to be fired in my app.
The SelectBox widget uses a "qx.ui.form.List" widget as child control to 
display the entries. This widget offers a "addItem" event which you can use to 
get informed.

--snip--
selectBoxInstance.getChildControl("list").addListenerOnce("addItem", 
function(e) { // your code here });
--snip--

> I think there should be an event which is fired when the listItems are
> changed, is there?
Yes, the "addItem" as described above if items are added and the 
"changeSelection" if the user has selected an item.

cheers,
  Alex

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to