【发布时间】:2019-09-13 03:02:15
【问题描述】:
我有一个数据网格,其中 dataprovider 中的数据每 30 秒自动更改一次。每次这样做时,如果我选择通过单击标题对列进行排序,它将恢复为默认排序(在我单击标题之前)。我想知道如何控制排序,这样如果我之前点击过它,它将在接下来的 30 秒内保持排序状态。
<mx:DataGrid id="id" width="100%" height="100%">
<mx:columns>
<mx:DataGridColumn dataField="@col1" headerText="Type1" itemRenderer="itemRenderer" />
<mx:DataGridColumn dataField="@col2" headerText="Type2" itemRenderer="itemRenderer" />
</mx:columns>
<mx:dataProvider>
{xmllist_extractedfromAnotherSourceEvery30Seconds}
</mx:dataProvider>
</mx:DataGrid>
【问题讨论】:
标签: apache-flex actionscript mxml