Great, that idea worked. I didn't think to override isMultiSelect but
it makes complete sense.
Much obliged.
On 2/27/06, Adam Wolff <[EMAIL PROTECTED]> wrote:
> There is no selectAll in selectionmanager. You want to enable multiple
> select. It's kind of a pain but you can do this:
>
> <selectionmanager>
> <attribute name="selectingAll" value="false"/>
> <method name="selectArray" args="arrOfThings">
> this.setAttribute( "selectingAll", true );
> for ( var i in arrOfThings ){
> this.select( arrOfThings[ i ] );
> }
> this.setAttribute( "selectingAll", false );
> </method>
> <!-- This gets called by the selection manager whenever select() is
> called to decide if the next thing should be added to the
> selection or if it should replace the selection -->
> <method name="isMultiSelect">
> if ( this.selectingAll ) return true;
> else return super.isMultiSelect();
> </method>
> </selectionmanager>
>
> On Feb 27, 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.
> >
> > A good sample would be adding a "select all" button to this example :
> > http://www.laszlosystems.com/lps-3.1.1/laszlo-explorer/editor.jsp?src=docs/reference/selectionmanager-$1.lzx
> >
> > _______________________________________________
> > Laszlo-user mailing list
> > [email protected]
> > http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> >
>
>
--
---------------------------------------
Donald Dwoske
Software Journeyman
http://www.loraxis.com/ddwoske
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user