4 Replies Latest reply on Mar 25, 2010 6:06 PM by João Saleiro

    How to assign skinClass to item renderer?

    csham Level 1

      I've a DataGroup where a custom item renderer is assigned to. I'd like to provide the skinClass style attribute value to the ItemRenderer at runtime. I can't seem to find any way to do it except:

       

      1. Use StyleManager to set the style for the item renderer class

      2. Hardcode the skinClass style in the constructor of the item renderer class

       

      Both seems to be an indirect way to assign styles to individual instantiated item renderer. I'm looking for if there is any way like ClassFactory.properties to assign a set of styles at runtime.

       

      Thanks for any help.

       

      kam