Advance DataGrid Header column Drag drop
I want to prevent drag drop in some column header .
Thanks
My code
private function _headerShift(evt:IndexChangedEvent):void{
var dg:AdvancedDataGrid= AdvancedDataGrid(evt.currentTarget);
var column:AdvancedDataGridColumn开发者_运维百科 = dg.columns[evt.newIndex];
var dropTarget:AdvancedDataGrid = AdvancedDataGrid(evt.currentTarget);
if(evt.oldIndex > 3){
evt.stopImmediatePropagation();
evt.preventDefault();
dropTarget.validateNow();
}
}
精彩评论