Nevermind. I'm silly. I just realized what I sent lol. If it's null it'll set it to a new empty Vector. Ignore me please :)
Kyle McKnight Senior UI Engineer - Accesso 602.515.1444 (M) On Thu, Sep 29, 2016 at 4:52 PM, Kyle McKnight <[email protected]> wrote: > Did you try list.selectedIndices = []? > > The documentation says that the default value is []. So I looked at the > source for List for selectedIndices setter. Looks like if value is null, it > won't set the indices, so it won't get updated. > > if (value) > _proposedSelectedIndices = value; > else > _proposedSelectedIndices = new Vector.<int>(); > > > > > Kyle McKnight > Senior UI Engineer - Accesso > 602.515.1444 (M) > > On Thu, Sep 29, 2016 at 4:47 PM, Matthew Weir < > [email protected]> wrote: > >> 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 >> <[email protected]> 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 :) >> >> >> > > >
