actionscript 3 - how to hide a row without deleting item from dataprovidor in DataGrid...AS3,Flex? -
how can hide row @ specific index of datagrid in as3 ?
if dataprovider of datagrid
arraycollection
can specify filterfunction
property it, that
dataprovider.filterfunction = function (item:object):boolean{ if (dataprovider.getitemindex(item)==indexofrowyouwanttohide){ return false; } return true; };
the item still in arraycollection made invisible filter. not efficient solution works. need call
dataprovider.refresh();
to apply filter.
update: access raw, unfiltered data of arraycollection
should use list
property, if hid item @ index 0 , still want able access this:
dataprovider.list.getitemat(0);
Comments
Post a Comment