I'm in a situation where I need to change the itemrender Icon depending on the data. I'm thinking to remove the icon and add another icon of differnt image depending on the data. Or should I just change the styleName ="XxX" ?
I know changing style at run time is costly. But, I'm not sure if removing this and adding anothr one is costly or changing style.
I even thought about doing linkbutton.icon = embedded asset (last option coz i dont want embeded things in code).
It depends on where you are in the display object tree. Add/remove
propagates upwards, style changes propagate downward.