2 Replies Latest reply on Dec 13, 2010 10:56 AM by Flex harUI

    Image item renderer issue

    jfb00 Level 3

      Hi all,

      Yesterday I found a soultion to display my image in my datagrid column. Now the issue is that if i leave the screen and come back to my screen the images move one space like the row index is adding one count, it's not validating my if statement.

      Any ideas?




      <mx:DataGridColumn headerText="LOCK" dataField="ISLOCKED" width="40">
                  <mx:HBox horizontalAlign="center">
                          import mx.core.BitmapAsset;
                          public var lockImage:Class;
                          private function checkLocked():void{
                              if (data.ISLOCKED == 1){
                                  var asset:BitmapAsset = new lockImage() as BitmapAsset;
                                  img.source = asset;
                                  img.source = "";
                  <mx:Image id="img" creationComplete="checkLocked()" />