flex - Determine drag proxy when using itemRenderer on DataGrid -


/ P>

  public class FlashFileDataGridRenderer label {public function FlashFileDataGridRenderer () {super (); } Override Protected Function UpdateDisplayList (Unsaleated Wideth: Number, Uncalyed High: Number): Zero {Super. Update Displays (Unsaleated Wideth, Unsolidated Height); This.setStyle ("paddingLeft", "3"); If (data instances of the Flash Instant Bean) {if ((data.cutFlag) {setStyle ("color", "#AAAAAA"); } And set style ("color", "# 000000"); }  

This applies to all items in the DataGrid, when it is dragged, it no longer shows the proxy with less alpha. I want to be able to maintain that style, how can I determine whether this special item item renderer is being implemented or not? I'm thinking if I can determine that the object is a proxy, then the text is to be faded.

Thank you!

Try moving the setStyle calls to the overdose set data method

  Override public function set data (T: object): zero {super.data = t; If (data instances of the flash instanton bean) {if (data.cutFlag) setStyle ("color", "#AAAAAA"); And set style ("color", "# 000000"); }}  

Comments