开发者

Advance DataGrid Header column Drag drop

开发者 https://www.devze.com 2022-12-22 16:27 出处:网络
I want to prevent drag drop in some column header . Thanks My code private function _headerShift(evt:IndexChangedEvent):void{

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();

                }
            }
0

精彩评论

暂无评论...
验证码 换一张
取 消