Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 378
Pieter van Niekerk Avatar asked Feb 26 '23 15:02

Pieter van Niekerk


2 Answers

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

<mx:AdvancedDataGrid id="myADG" sortItemRenderer="{null}" />
like image 149
Pieter van Niekerk Avatar answered Mar 08 '23 02:03

Pieter van Niekerk


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.

like image 31
JeffryHouser Avatar answered Mar 08 '23 02:03

JeffryHouser