6 Replies Latest reply on Feb 24, 2012 11:39 AM by nvhdab

    How to listen for events on a spark GridColumn headerRenderer

    Chris Velevitch Level 1

      In Flex 4.5, I've created s:DataGrid with a s:GridColumn as:-


         <s:GridColumn id="cid" headerText="..." dataField="fieldname" headerRenderer="ColumnSearch"/>


      and ColumnSearch is defined as:-




              <s:Label text="{column.headerText}"/>

              <s:TextInput id="searchText" prompt"Search"/>



      I haven't been able to successfully listen for change events on the text input field from the class containing the datagrid because don't know where to add teh event listener. I tried cid.addEventListener, but no event is caught.


      What is the name of the instance of of the headerRenderer in GridColumn? Am I looking in the right place?