Hi All, I created a two-column Spark datagrid (SDK4.5.1), with sortable columns.
The user is free to change the data that appears in this datagrid by selecting various drop-down lists. The problem I'm experiencing is that if the user first sorts the datagrid, then selects an option to change the dataProvider for the grid, the appearance of the sort triangle in the datagrid header does not update when the data inside the datagrid updates. The sort triangle never synchronizes with the current sort state of the datagrid, but rather, reflects the previous sort state, until a new sort is performed manually. All the ways I've tried to do programmatic sorts, while sorting the datagrid correctly, have no effect on that little sort triangle in the header. What's the secret to programmatically sort a Spark datagrid, and have the sort triangle update as well? I've tried doing: myDataProvider.sort = null; myDataProvider.refresh(); myGridComponent.grid.invalidateDisplayList(); and also: var columnIndexes:Vector.<int> = Vector.<int>([0]); // select first column to sort myGridComponent.grid.sortByColumns(columnIndexes, true); and some other ideas, but no luck so far. Hoping this is relatively simple, as it's been driving me nuts this last week. Thanks in advance for any comments.
