Re: [flexcoders] How to SelectAll entries in List

2008-11-20 Thread anuj sharma
Hi Alex and Josh Thanks for your help. Worked perfectly for me. I was just little lazy to look for some in-built property like selectALL in Flex for that, but your logic works perfect for me. Thanks again guys Anuj On Thu, Nov 20, 2008 at 2:55 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: > Code

Re: [flexcoders] How to SelectAll entries in List

2008-11-20 Thread Josh McDonald
sday, November 20, 2008 2:56 PM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] How to SelectAll entries in List > > > > Code: > > var all : Array; > > if (myList.dataProvider is Array) > { > all = myList.dataProvider.concat(); > } > else &g

RE: [flexcoders] How to SelectAll entries in List

2008-11-20 Thread Jim Hayes
oders@yahoogroups.com Subject: Re: [flexcoders] How to SelectAll entries in List Code: var all : Array; if (myList.dataProvider is Array) { all = myList.dataProvider.concat(); } else { all = []; for (var o : * in myList.dataProvider) { all.push(o); } } myList.selectedItems = all; Note

RE: [flexcoders] How to SelectAll entries in List

2008-11-20 Thread Alex Harui
Of Josh McDonald Sent: Thursday, November 20, 2008 2:56 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to SelectAll entries in List Code: var all : Array; if (myList.dataProvider is Array) { all = myList.dataProvider.concat(); } else { all = []; for (var

Re: [flexcoders] How to SelectAll entries in List

2008-11-20 Thread Josh McDonald
Code: var all : Array; if (myList.dataProvider is Array) { all = myList.dataProvider.concat(); } else { all = []; for (var o : * in myList.dataProvider) { all.push(o); } } myList.selectedItems = all; Note that you might want to use myList.dataProvider.source() if it's a collection