Don,

cc'ing laszlo-user since this is more of a LZX question...

I ran into this too when developing the list components for LPS 2 (the 
former name of OpenLaszlo).  Your problem is that the selectionmanager 
is sinlge-selecting, not set to multi-select.  I would have expected the 
selectionmanager to have a flag for this, but it doesn't.  You want to 
override the isMultiSelect and isRangeSelect methods (which just check 
for shift or ctrol keys in the LFC class)

/lps/components/base/listselector.lzx has an example of this:
        <method name="isRangeSelect" args="item">
            var allowselect = false;
            if (multiselect) allowselect = super.isRangeSelect(item);
            return allowselect;
        </method>
        <method name="isMultiSelect" args="item">
            var allowselect = false;
            if (_forcemulti) allowselect = true;
            else if (multiselect) allowselect =  super.isMultiSelect(item);
            return allowselect;
        </method>

or look at /lps/components/base/datalistselector.lzx if you are using a 
datalistselector

Cheers,
Sarah

Don Dwoske wrote:

>I am trying to programatically select everything managed by a
>selectionmanager  at the click of a button which I've named... "Select
>All"
>
>I clearly see selector.clearSelection() ... which works with my
>"Select None" button...
>
>but I can't figure out how to select everything?  if I call select(o)
>on each item in my view, only the last one remains selected.  I
>apparently don't have visible access to toggle the multiSelect...
>
>it would really suck if I need to subclass selectionmanger to accomplish this.
>
>_______________________________________________
>Laszlo-dev mailing list
>[email protected]
>http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>  
>

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to