[Users] TreePanel and MultiSelectionModel don't respond to SHIFT

Charlton Galvarino charlton at 2creek.com
Fri Sep 23 16:33:44 CEST 2011


Hi, all.  If you look at the layercontainer.html example, http://api.geoext.org/1.0/examples/layercontainer.html, and modify it slightly by adding a selModel to the tree . . .

    tree = new Ext.tree.TreePanel({
        renderTo: "tree",
        root: new GeoExt.tree.LayerContainer({
            text: 'Map Layers',
            layerStore: panel.layers,
            leaf: false,
            expanded: true
        }),
        enableDD: true,
        width: 170,
        height: 300,
        floating: true,
        x: 380,
        y: 0,
        selModel: new Ext.tree.MultiSelectionModel()
    });

. . . Once you add at least 2 layers from the WMS Cap list so that they appear in the Map Layers panel, you'll see that CTRL clicking allows you to select > 1 row, but SHIFT does nothing.

Anyone know why?  I poked around all over the place and came up empty.

TIA.




Charlton Galvarino
1 (803) 233-6205 : voice
1 (803) 223-9579 :   fax
charlton at 2creek.com

P.O. Box 50960
Columbia, SC 29250



More information about the Users mailing list