Dataview preselect nodes

  • Hello,

    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(
    '',
    '',
    '


  • You should listen to the datachanged event on the store.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Dataview preselect nodes , Please add it free.