2 Replies Latest reply on Aug 7, 2011 2:54 PM by Francisc

    How to determine which renderer is loaded

    Francisc Level 3



      I have a list that can have 2 different itemRenderers, both custom classes that extend the IconItemRenderer.

      I assign them to the list using something like this: list.itemRenderer=new ClassFactory(MyItemRenderer).


      When an element is selected, I want to check what itemRenderer is loaded and depending on that, perform one action or another.


      How can I do this? I currently check dataProvider for the list as the two itemRenderers use different data providers, so if(list.dataProvider=collection1){}.


      Thank you.