I've been searching the API to get this working, but can't find it. Should be simple to solve.
I'm trying to have some nodes selected on "load"
This should be the "select" method, but I don't know which event could trigger it. "load" doesn't exist on that one. Anyone?
var view = new Ext.DataView({
itemSelector: 'div.thumb-wrap',
style: 'overflow:auto',
multiSelect: true,
simpleSelect: true,
store: new Ext.data.JsonStore({
url: '/get-images/',
autoLoad: true,
root: 'images',
id:'id',
fields:[
'name', 'url',
{name: 'shortName', mapping: 'name', convert: shortName}
]
}),
listeners: {
selectionchange: {
fn: function(dv,nodes){
}
}
},
tpl: new Ext.XTemplate(
'
'',
'
#If you have any other info about this subject , Please add it free.# |