[flexcoders] Re: Why is this renderer so slow?

2008-05-27 Thread Tracy Spratt
Also, it looks like you are doing some work in the set data() method. This method gets called more often than you might expect. Consider, in the set data(), storing the data in a local var then calling invalidateProperties(), then actually do the work in commitProperties(). I think maybe I

[flexcoders] Re: Why is this renderer so slow?

2008-05-25 Thread dbronk
Thanks, I'll take a look at that. I dispatched the event because I needed to determine if the checkbox needed to be hidden (different post). But, adding the dispatch really did nothing for the performance. It was just as slow before I added the dispatchEvent. Thanks again for your suggestion.

[flexcoders] Re: Why is this renderer so slow?

2008-05-24 Thread dbronk
mx:DataGrid dataProvider={yourCollection} mx:columns mx:DataGridColumn dataField=yourBooleanField itemRenderer=mx.controls.CheckBox editable=true/ /mx:columns /mx:DataGrid Fill up the yourCollection with a bunch of objects or xml with a field named yourBooleanField. Run it and they will