Skip navigation
Currently Being Moderated

Cairngorm Observer : Could we use a itemRendererFunction ?

Mar 21, 2011 9:57 AM



I've got a special need for my application : I should use several renderer depending on data state/type.


It seems that this need could be covered by itemRendererFunction (in a spark list for example) but this property does not exist in Cairngorm Observer SelectableChildProvider type.


Is there a way to use itemRendererFunction or a trick/tip to use something similar ?





  • Currently Being Moderated
    Mar 24, 2011 9:54 AM   in reply to MrKoinkoin

    Hi Cedric,


    The ChildProvider re-uses created itemRenderers a bit like the Spark List with virtualLayout enabled ( virtualLayout is not supported when using itemRenderer functions for the same reason). As such adding an itemRendererFunction would involve loosing this UIComponent "caching" feature for this specific case.


    If you fill that this feature is important could you please create an enhancement request on our JIRA?



    As a temporary workaround you can rely on states to rearrange the layout of your renderers based on the data property. You may also be interested in the classFactory feature to pass properties to your itemRenderers ( core/ClassFactory.html)


    Many thanks,



    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points