Hi,
I am using a simple listview control in one of my apps.. I am able to attach
a handler to it.. but I am not able to retrieve the current selected row.. I
have tried a lot of stuff but nothing helps.. I am pasting the code snippet
that will tell u wat all i have tried..
lv.addEventListener('click', function(e){
alert(lv.getData().length +" "+ lv.getData.text) //returns=> 50
undefined
/* var selItems = e.getData()
for (var i=0; i<selItems.length; i++) {
var item = selItems[i];
alert(item);
}
*/ <= Doesnt work
// alert("ID :: "+JSON.stringify(lv.getData()[0])); // <= Doesnt work
/*
var pane=lv.getPane();
var it=pane.getSelectedItem();
var pos=pane.getRelativeItemPosition(it);
*/ <= Gives me the current row number.. BUT I want the row CONTENTS!!
/* var myList_sel = e.getData();
alert("ID :: "+JSON.stringify(myList_sel));
*/<= useless :(
});
I seriously need some help.. please have a look at reply at the urgent..
--
View this message in context:
http://www.nabble.com/Listview-Data-Value-tf1896111.html#a5185956
Sent from the qooxdoo-devel forum at Nabble.com.
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel