Hi All,

I have a DataGrid that is working with a dataProvider(ArrayCollection)
with null items. The ArrayCollection represents the files in a
directory and I am performing pagination. Before I populate the
ArrayCollection with valid FileVO objects it is filled with null items
for every file in the directory. I specify the nullItemRenderer
property of the 'File Name' DataGridColumn so that a spinner animation
will display until I update the ArrayCollection as the result of a
paginated query to fetch the contents of the directory.

When I first select a directory I never see my nullItemRenderers. It
is not until the first page loads, updates the ArrayCollection with
the first page of results and valid item renderers are created and
displayed will I see the nullItemRenderers when scrolling the rest of
the collection. It seems the nullItemRenderer is only used once the
cache of ItemRenerers is full of valid Item renderers for all the
visible rows in the DataGrid.

How can I have the DataGrid use nullItemRenderers even before a non
null item has been rendered?

Any help is greatly appreciated.

Thanks,

Greg

Reply via email to