i have an error adding dataprovider on my spark datagrid:
Multiple initializers for property 'dataProvider'. (note: 'dataProvider' is the default property of 'spark.components.DataGrid').
My data is from s:httpService
declaration and i put it in data grid something like this
<s:DataGrid includeIn="formState" x="348" y="57" width="287" dataProvider="{myHttpService}">
<s:columns>
<s:ArrayList>
<s:GridColumn dataField="data1" headerText="Data Field 1"></s:GridColumn>
<s:GridColumn dataField="data2" headerText="Data Field 2"></s:GridColumn>
<s:GridColumn dataField="data3" headerText="Data Field 3"></s:GridColumn>
</s:ArrayList>
</s:columns>
<s:typicalItem>
<fx:Object dataField1="Sample Data" dataField2="Sample Data" dataField3="Sample Data"></fx:Object>
</s:typicalItem>
<s:ArrayList>
<fx:Object data1="data1" data2="data1" data3="data1"></fx:Object>
<fx:Object data1="data2" data2="data2" data3="data2"></fx:Object>
<fx:Object data1="data3" data2="data3" data3="data3"></fx:Object>
<fx:Object data1="data4" data2="data4" data3="data4"></fx:Object>
</s:ArrayList>
</s:DataGrid>
and my http service is:
<s:HTTPService id="myHttpService" url="http://host.com/mydata.php"/>