qq rr ...">

FLEX Data List Content and XML List

I have the following XML list:

<Queries>
    <Query id="1">qq</Query>
    <Query id="2">rr</Query>
    <Query id="3">ss</Query>
</Queries>

and I would like to display it in the following data file:

<mx:DataGrid id="dataGrid" dataProvider="@{Queries.Query}" editable="true" width="500">
    <mx:columns>
         <mx:DataGridColumn headerText="id" dataField="@id" resizable="false" width="100"/>
         <mx:DataGridColumn headerText="Query" dataField="Query"/>
    </mx:columns>
</mx:DataGrid>

Column "id" is filled correctly, but column "Request" is empty. How can i solve this?

+3
source share
1 answer

Try it.

<mx:DataGrid id="dataGrid" dataProvider="{Queries.Query}" editable="true" width="500">
<mx:columns>
     <mx:DataGridColumn headerText="id" dataField="@id" resizable="false" width="100"/>
     <mx:DataGridColumn headerText="Query" dataField="*"/>
</mx:columns>

Regards, Rape.

+1
source

Source: https://habr.com/ru/post/1746544/


All Articles