Flex How can I change item in dataProvider when Items is selected or deselected in the mx:List -


flex how can change item in dataprovider when items(multiple selection) selected or deselected in mx:list

i want data reflect items selected in list dynamically. base on sorting list, example make selected items first in list when selected, , go original place when items deselected....

you can use iviewcursor get/add/remove items of list.

below code example of how create cursor, based on need apply logic need.

var col:icollectionview =  icollectionview(list.dataprovider); var mycursor:iviewcursor = col.createcursor();  //do logic using mycursor functions ... //refresh collection changes reflect in list col.refresh(); 

here can check more info it.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -