PDA

View Full Version : get Ext.listview selected id



hekuran
4 Aug 2009, 5:19 PM
Hello everyone,
How can I get an dataIndex of the selected record on Ext.Listview?

powellke
5 Aug 2009, 4:46 PM
I'd like to know that, too. When I look at the nodes array in the selectionchange event in Firebug, I only see the array of "dl" elements. That doesn't help me get anything related to the ListView's store records.

Animal
5 Aug 2009, 9:55 PM
http://extjs.com/deploy/dev/docs/?class=Ext.ListView&member=getSelectedIndexes

http://extjs.com/deploy/dev/docs/?class=Ext.ListView&member=getSelectedNoded

http://extjs.com/deploy/dev/docs/?class=Ext.ListView&member=getSelectedRecords

hekuran
6 Aug 2009, 8:49 AM
thank you very much.

I used listView.getSelectedRecords()[0].id to get the value of column id.