PDA

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



blow
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:
template:


'<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>',
'</tpl>',
'<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 ) {
//etc
}
}


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.