1 Reply Latest reply on Apr 2, 2010 10:01 AM by Flex harUI

    Custom itemrenderer for list-when 'data' is null


      I have a list and i am using a custom item renderer for it.The item renderer should be in such a way that i need to show a "-----------" when there is no data to be displayed.For eg:lets say the dataProvider has 3 items and there are 6 rows visible, i want the "-------" to appear in the 3 rows with no data to show.Is there any way the itemrenderer can know if data is null?.As far as i know the item renderer will be created if and only if there is something in the data property.I am looking for a solution other than adding dummy items to my dataprovider, or is there an alternate solution existing?