Reputation: 848
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.
Upvotes: 4
Views: 6781
Reputation: 33
also set mouseChildren="false"
so that it will not give error on public function mouseEventToHeaderPart(event:MouseEvent):String.
Upvotes: 0
Reputation: 13
Use this- sortExpertMode="true"
tag.
This wont give error for mouseEventToHeaderPart event. Worked great for me.
Upvotes: -1
Reputation: 848
I just set the sortItemRenderer
property to null
and it worked like a charm.
<mx:AdvancedDataGrid id="myADG" sortItemRenderer="{null}" />
Upvotes: 8
Reputation: 39408
Would a HeaderRenderer work for you?
I'm not sure, because based on your screenshot the 'arrow' that you reference doesn't look like it is in an actual header. In which case I would look into using an itemRenderer to see if that addresses it.
Upvotes: 1