0 Replies Latest reply on Nov 7, 2006 12:22 PM by marius.bara

    IDropInListRenderer

    marius.bara
      I'm using a itemRender as an itemEditor in a DataGrid. I want to enable or disable the itemRenderer based on some values in the dataProvider.
      I implemented something but I'm having problems when refreshing the whole DataGrid dataProvider (the ItemRenderer is displayed in a place where it shouldn't be). The main problem is the way I handle the displaying for the ItemRender

      override protected function updateDisplayList(unscaledWidth:Number,
      unscaledHeight:Number):void
      {
      var isChecked:Number=data.ISSUBMITED;
      if(isChecked==1){

      }
      else{
      super.updateDisplayList(unscaledWidth,unscaledHeight);
      this.enabled=true;
      this.editable=true;
      }
      }



      Any advise would be apreciated.