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?


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.

Need Your Help

jQuery animate VERY slow on IE8 - Fix?

jquery performance css3 internet-explorer-8 jquery-animate

the website I am working on has a banner / bottom strip which loads in when a user scrolls down the page, and hides again when they scroll up. I've added some logic so that there is a fail safe fo...

TextFields are at the incorrect locations when using Push instead of Modal

ios uitableview autolayout segue

I have a simple table view controller which has a plus button in the navigation bar. That modally leads to a place where users can insert information into text fields. These are situated throughout...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.