I've been reading for awhile on this subject, and getting a lot of varying information.
I need to know how to access the data in a dataprovider from an itemRenderer.
What i want to do is use a check box in a DataGrid, or possibly a ComboBox, as an item renderer.
I need to figure out, for instance, how to set the CheckBox.label = to a certain field in the data Provider.
The data provider is assigned, of course, to the parent component, in this case the dataGrid or comboBox.
I have seen signs pointing to the idea that the 'data' field indicates this value, but i don't see that value in any of the spark components.
So, i guess my question is two-fold:
1-how to access data provider info from an item renderer in general?
2-how to access data provider info using spark components?
thanks in advance!
The mx components could just be dropped in as an itemRenderer. There was
enough overhead for doing so that we decided not to do that in Spark item
renderers. Instead, you can wrap a component in an ItemRenderer and bind to
the ItemRenderer's data property. Or, if you really want to optimize, you
can do the work to subclass and upgrade a component to implement
thanks! i was able to play around with it and finally got it to work. i created a custom MXDataGridItemRenderer object and added a checkBox to it. i then bound the 'label' field for that field to the data.label fielld, which worked! thanks again!