Advance DataGird Header column Drag drop
Posted
by Atul Yadav
on Stack Overflow
See other posts from Stack Overflow
or by Atul Yadav
Published on 2010-03-13T11:54:09Z
Indexed on
2010/03/13
11:55 UTC
Read the original article
Hit count: 185
flex
Hi.. 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();
}
}
© Stack Overflow or respective owner