apache-flexheadersortingadvanceddatagrid

Flex AdvancedDataGrid - Remove sort arrow


Is it possible to completely remove the sort arrows on an AdvancedDataGrid header?

I know that you can kinda do this by using

<mx:AdvancedDataGrid sortExpertMode="true"/>

and I even tried using

<mx:AdvancedDataGrid sortExpertMode="true">        
<mx:columns>
    <mx:AdvancedDataGridColumn sortable="false" /> 

This doesnt work because I have an automatic sort whenever one of the group items are opened. So the grid starts of great looking like this

closed group http://www.freeimagehosting.net/uploads/85fd6c9816.jpg

and when we open a group we are greeted by this fiendish triangle in the header

open group http://www.freeimagehosting.net/uploads/3226375b08.jpg

Any help will be greatly appreciated.


Solution

  • I just set the sortItemRenderer property to null and it worked like a charm.

    <mx:AdvancedDataGrid id="myADG" sortItemRenderer="{null}" />