2 Replies Latest reply on Feb 25, 2008 2:37 PM by mac_55

    Dynamic stylename for button

    mac_55 Level 1
      Hi. I'm using a button in an itemrenderer (bound with xml). I'm looking to set the stylename of the button dynamically using a field in the XML.

      I can easily do this with the label e.g. label="{data.data.@prop}" but when I try styleName="{data.data.@cls}" it doesn't work. I've also tried creating an initialize event in the hope of setting this property in code. But I'm not sure how to access the data item from the code.

      Please help! :)