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)" >
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?
That is interesting. Have you tried to add the eventListener via AS.
<mx:AdvancedDataGridItemRenderer xmlns:mx="http://www.adobe.com/2006/mxml" id="grid" >
Does the method get called at all or is the variable just not chaning?