Hi Sebastian,

here are some codesnipets that I use to create the listitems:

var lMarktWahl    = new QxList( null, lcMarktWahl );
lMarktWahl.getManager().setMultiSelection(false);

lMarktWahl.getManager().addEventListener("changeSelection", function(e) {
   // this is where it dies
   e.getData().getValue();
});
lMarktWahl.setBackgroundColor("white");
lMarktWahl.setEdge(0);
lMarktWahl.setOverflow("scrollY");

var arrMarktAuswahl    = [
{ type: "radio", name: "Anbieter von DSL-Zugängen", icons: [ null, null ], status: false, value: "15", children: [] }, { type: "radio", name: "Autos", icons: [ null, null ], status: false, value: "14", children: [] }
];

for ( var i = 0; i < arrMarktAuswahl.length; i++ ) {
var li = new QxListItem( arrMarktAuswahl[i].name, arrMarktAuswahl[i].icons[0], arrMarktAuswahl[i].value );
   lMarktWahl.add( li );
}

Hope this is enough. If you need more, I will put the static html page on one of our servers and send you the url.

Thanx for your help :)
Patrick

Sebastian Werner schrieb:

Patrick W. Fraley schrieb:

Well the classbrowser says differently. And in creating the listitem you give it:
vText
vIcon
vValue


Ok, well. My error. It really seems to be there. Could you send a small example which shows your problem?

Sebastian


And in the Propertylist the only propertie the QxListItem has is a value. Maybe I misunderstand the documentaion?

Sebastian Werner schrieb:


listitems have IMHO no property "value".

Sebastian



Patrick W. Fraley schrieb:

Hi List,

I have a QxList which contains QxListItems. Now to the list I added an eventmanager:

list1.getManager().addEventListener("changeSelection", function(e) {
   alert(e.getData());
   b1MarktWahl.setEnabled( true );
});

Now the e.getData() seems to return a QxListItem (at least that is what the alert is telling me), which is supposed to have a getValue() function, but if I try to call the get Value Function ( e.getData().getValue() ) I get an error in the debug window, telling me e.getData().getValue() is not a function. What am I doing wrong? Or is the item returned by e.getData() not realy a QxListItem?

Thanx
Patrick




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel







-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



--
***************************************
COMsulting Gerhard Faehling GmbH
Patrick W. Fraley
Oeverdieker Weg 6
23669 Timmendorfer Strand
Tel: 04503 / 7033-25
Fax: 04503 / 7033-13
E-Mail: [EMAIL PROTECTED]
Internet: www.comsulting.de
***************************************




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to