2 Replies Latest reply on Feb 21, 2011 11:25 PM by uajmal

    "Unable to generate initialization code within Repeater, due to id or data binding on a component that is not a visual child. "

    Pareek fx

      Error:

       

      "Unable to generate initialization code within Repeater, due to id or data binding on a component that is not a visual child. "


      Code snippet:

       

       

       

       

       

       

       

       

       

       

       

       

      <mx:Repeater

       

       

      width="100%" height="100%" id="rpp" dataProvider="{loginDataseriesData.series}" >

       

       

       

      <mx:Panel width="100%" title="{rpp.currentItem.@name}">

       

       

       

      <mx:DataGrid width="100%" dataProvider="{rpp.currentItem.data}" id="loginDataDG" itemClick="loginDataDGClickevent)" sortableColumns="false" draggableColumns="false">

       

       

       

      <mx:columns>

       

       

       

      <mx:DataGridColumn headerText="Age Group" dataField="@periodValue"/>

       

       

       

      <mx:DataGridColumn headerText="Year" dataField="@timePeriod"/>

       

       

       

      <mx:DataGridColumn headerText="Value" dataField="@dataValue"/>

       

       

       

      <mx:DataGridColumn headerText="User Name" dataField="@userName" editable="false"/>

       

       

       

      <mx:DataGridColumn headerText="Notes" dataField="@notes"/>

       

       

       

       

      </mx:columns>

       

       

       

      </mx:DataGrid>

      ...

      ...

       

      Thanks