Hi, IDs
i need to add, select, and get this id to/from the virtual selectbox and how can i get the row to select an item? widget.getSelection().getItem(0).getLabel() i get the label but how i get the row? > Hi, > > what data do you try to save with setUserData? > > Cheers, > Chris > > Am 22.12.2011 10:04, schrieb [email protected]: >> Hello , i use a virtual selectbox, like below, but how can i add some >> data like the setUserData to a entry , and how can i add the data after >> the widgetcreation? >> >> >> >> getProduktSelectbox : function() { >> var rawData = []; >> >> >> for (var i = 0; i< 1000; i++) { >> rawData.push({ >> label: "name"+i, >> ID: "id" >> }); >> } >> var model = qx.data.marshal.Json.createModel(rawData); >> >> var widget = new qx.ui.form.VirtualSelectBox(model).set({ >> labelPath: "label" >> }); >> >> return widget; >> }, >> >> ------------------------------------------------------------------------------ >> Write once. Port to many. >> Get the SDK and tools to simplify cross-platform app development. Create >> new or port existing apps to sell to consumers worldwide. Explore the >> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join >> http://p.sf.net/sfu/intel-appdev >> _______________________________________________ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
