flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Weir <mattcomm...@yahoo.com.INVALID>
Subject Re: Clearing List Control
Date Thu, 29 Sep 2016 20:47:25 GMT
Apparently this works,  But I don't understand why you just can't say the selectedIndicies
are null or new Vector<int>
var ac:ArrayCollection = new ArrayCollection(ObjectUtil.copy((list.dataProvider as ArrayCollection).source)
as Array);
ac.refresh();list.dataProvider = ac; 

    On Thursday, September 29, 2016 4:31 PM, Matthew Weir <mattcommark@yahoo.com.INVALID>
wrote:
 

 I'm stumped guys.  I must be missing something completely, ridiculously, easy.
list.selectedIndices = new Vector.<int>();
                var ac:ArrayCollection = list.dataProvider as ArrayCollection;
                list.dataProvider = null;
                ac.refresh();
                list.selectedIndices = null;
                list.selectedIndex = -1;
                list.dataProvider = ac;
                list.invalidateDisplayList();
                list.validateNow()
Still shows selected items.
Help!  Please :)


   
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message