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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -