0 Replies Latest reply on May 27, 2011 1:31 PM by ihatescreenamesalot

    dynamic validators and itemrenderer

    ihatescreenamesalot

      Hi,

       

      I have a bunch of dynamic validators that i create in my application.

       

      I have a s:DataGroup which contains an itemRenderer. In this itemRenderer, I have a combobox which I want to validate.

       

      I perform the validation like this:

       

       

      protected function performValidation(event:FocusEvent):void

      {

            var condition:Condition = data as Condition;

            condition.validator.listener = valuesComboBox;

            condition.validator.validate(valuesComboBox.textInput.text);

      }

      Of course, when I do this, the itemrenderer is recycling, and the validator appears in comboboxes in which i do not want it to.
      Anybody have any idea how i can work around this problem?
      Thanks,
      Jamie