문제

I've got a Flex TileList which has an ArrayCollection as its data provider. The ArrayCollection is used elsewhere in the application so modifying the base data is not possible.

There are two items at the start of the collection (indices 0 and 1) which I don't want to be rendered.

Is it possible to exclude these items from the TileList rendering?

도움이 되었습니까?

해결책

I would recommend that you create a new collection using the same source as your original ARrayCollection. Then apply a filter to remove those two items. This will not affect the your original data source or the other ArrayCollection which contains all the data.

The alternate would be to extend the TileList to ignore the first two items in it's dataProvider. I anticipate this would be difficult at best.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top