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
Post a Comment