0 Replies Latest reply on Jul 20, 2007 10:07 AM by Handycam

    One-way binding?

    Handycam Level 1
      I've got a series of data grids that reference items in an XMLList, as in:

      <mx:DataGrid id="dg1" width="100%" dataProvider="{stepChoices1}" selectable="false">
      <mx:columns>
      <mx:DataGridColumn headerText="{xmlData.step1.stepLabel}" sortable="false"/>
      </mx:columns>
      </mx:DataGrid>

      The variable here is:
      [Bindable]
      private var xmlData:XMLList;

      OK, fine, it works, but the compiler generates "warning" errors for every one of those XML references, saying:

      "Data binding eill not be able to detect changes to XMLList 'step 1', need an XML instance."

      I get that it means that if there were changes to this variable in the data grid, the won't get saved to the XML file (right?). If so, in this case I don't care, I only want to DISPLAY strings from my XML. No editing will be allowed.

      So how can avoid this error message?