We had a similar challenge except we needed to persist to the DB the rearrangement of columns...to do this, we extended the event class for our listeners so we could capture column selection events...You might try using the same thing and on column selected, perform a preventDefault() which would halt any action from happening...

Here's the class:

package com.ftdna
{
   import flash.events.Event;

   public class ColumnSelectedEvent extends Event
   {
       public var colIdx:int;
       public static const COLUMN_SELECTED:String = "columnSelected";
       public static const LABEL_SELECTED:String = "labelSelected";
       public static const COLUMN_DROP_TARGET:String = "columnDropTarget";
public function ColumnSelectedEvent(type:String, colIdx:int)
       {
           super(type);
           this.colIdx = colIdx;
       }
override public function clone():Event
       {
           return new ColumnSelectedEvent(type, colIdx);
       }
}
}

And here is an application of the class:


adg.addEventListener(ColumnSelectedEvent.COLUMN_SELECTED, denySelect)

private function denySelect(event:ColumnSelectedEvent):void
{
   if (event.type == ColumnSelectedEvent.COLUMN_SELECTED)
      event.preventDefault();
}

HTH,
Adrian

scottyale2008 wrote:

Is it possible to disable column reordering on Advanced Data Grid?
I've looked at all the properties and I don't see one such as
(allowHeaderMove, allowHeaderReorder, etc.)

Thanks!

Reply via email to