View Full Version : dataview getSelectedNodes returns selected notdes ( cnt ) but no html element

14 Sep 2010, 9:37 AM
If i print the selected nodes count, it prints te correct amount of selected nodes however i can't retrieve the html element somehow.

Anyone a clue / hint?

some partial code:

'<tpl for=".">',
'<div class="thumb-wrap" id="file-{id}">',
'<div class="thumb"><img src="{thumbnail}" title="{name}" /></div>',
'<span class="x-editable">{name}</span></div>',
'<div class="x-clear"></div>'

Selection of the node:

var node = Ext.getCmp('folderContentsThumbs');
if ( node ) {
var selNode = node.getSelectedNodes();
if ( selNode && selNode.length > 0 ) {

ps. "folderContentsThumbs" is the id of the dataview

The selNode.length contains the correct count, however a selNode.toSource() prints an emty object.

Thanks in advance.