PDA

View Full Version : Get selected data from an Ext.view.View



Araberen
29 Nov 2011, 1:00 PM
Hi,

I am using an Ext.view.View to display some pictures (exactly like in the DataView (http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/view/data-view.html) example).
How can I get the selected data? I don't mean the HTML node, but really the data that is selected on the grid and that comes from the store.
I would like to do something like: myView.getSelected().name; to get each property easily instead of parsing the HTML selected node (which currently doesn't contain all the information btw).

Thanks.

Araberen
29 Nov 2011, 2:05 PM
Finally found it by myself. :)


view.getSelectionModel().selected.get(0).data.url