Hi, What are you trying to do?
The selection property of a selectbox is a qx.data.Array, so its change event is triggered when the data of that array changes. The event data must be a map with the keys start/end/items/type (see [1]). Why would you want to fire it manually? If you're trying to set the selection, you should manipulate the array. var selection = selectBox.getSelection(); selection.removeAll(); //deselect everything selection.push(someItem); //select someItem Regards, Marc [1] http://demo.qooxdoo.org/1.4/apiviewer/#qx.data.Array~change On 05/11/2011 05:12 PM, dabd wrote: > I would like to triger the "change" event on the selection of a > VirtualSelectBox. > > At first I tried > selectBox.getSelection().fireEvent("change"); > > But this gave me an error that said it expected a qx.event.type.Data and not > a qx.event.type.Event so I tried: > > selectBox.getSelection().fireEvent("change", qx.event.type.Data); > > Now I get this error and I have no idea what it means: > Uncaught TypeError: Cannot read property 'start' of undefined > > Thanks. ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
