0 Replies Latest reply on Jul 18, 2008 11:13 AM by Tilalab

    DataGrid & XML

    Tilalab
      I am new to flex, I am using a data grid along with dataProvider to bind a particular xml, here is the sample code for this

      <mx:DataGrid dataProvider="{model.scheduleList.timed-event}" id="eventGrid">
      <mx:columns>
      <mx:DataGridColumn headerText="Start Date" dataField="start-date"/>
      <mx:DataGridColumn headerText="End Date" dataField="end-date"/>
      </mx:columns>
      </mx:DataGrid>

      Observe that data provider is binding to "model.scheduleList.timed-event" but flex has trouble with the element name having "-", It is external XML which I am using & there no way I can the change the element name to some thing else. In XML you can have "-" or "." as element name although it is not recommended, but in this situation I have no choice. Is there any way to do the same without changing the element name.

      Thanks