Tony Smith
Tony Smith

Reputation: 899

Spark List Itemrenderer focus defaults the currentState

I am using a spark list control with an itemrenderer. Whenever I set an itemrenderer's currentState, the moment I mouse out of the itemrenderer, it gets reset to its default state. How can I make an itemrenderer keep its currentState unless I explicitly tell it to change?

Upvotes: 0

Views: 840

Answers (1)

Wade Mueller
Wade Mueller

Reputation: 6059

You can do this by overriding the getCurrentRendererState method on your renderer and returning whatever state you like, including your custom state. Hope that helps.

Upvotes: 1

Related Questions