1 Reply Latest reply on Jan 31, 2012 8:40 AM by eabowler

    Listening for textInput event in an AdvancedDataGridItemRenderer

    bobbybeag Level 1

      I have a problem that should be simple issue to solve however it seems that there is an issue with the event handling in the AdvancedDataGridItemRenderer.


      I am trying to capture the textInput event within the AdvancedDataGridItemRenderer however its seems as though either the event is not being dispatched or its not being picked up. I need to capture specifically when the user types something - not when the data changes as data can change in a variety of different ways: Here is my code:


      <mx:AdvancedDataGridItemRenderer  xmlns:mx="http://www.adobe.com/2006/mxml"  textInput="onTextChange(event)" >





              import flash.events.TextEvent



              public var _changed:Boolean = false;



              protected function onTextChange(evt:TextEvent):void


                  _changed = true;






      I am also listening within the AdvancedDataGrid for the ItemEditEnd event which then checks to see if the user has changed the data via typing.


      My problem is that this var is alwasy set to false.


      Any ideas why my textInput Event is not dispatching?