I have a component that uses itemRenderers. I have an itemRendererFunction to select between two different renderers based on a boolean. I have a toggleButtonBar that when the user clicks it I need the list to switch ItemRenderers or run the itemRendererFunction to be run so. The toggle switches itemRenderer to show list mode (just a name itemRenderer) or verbose mode (more detail itemRenderer).
Tried invalidateDisplayList, but itemRendererFunction doesn't get called when I call invalidateDisplayList.
Does it work if you set the itemRendererFunction value to itself again?
Thats exactly what I did, well actually set it to null and then set it to the itemRendererFunction.