dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Drag-n-Drop preventDefault problem with DataGrid

  1. #1
    Actionscript 3, postproduction georgecalgary's Avatar
    Join Date
    Jun 2005
    Location
    Toronto
    Posts
    229

    Drag-n-Drop preventDefault problem with DataGrid

    I want to deny the default dropping between two DataGrids because I only drop data from source to an item of destination grid without pushing anything. Everything fine but I couldn't find a way to clear the highlight on the top of dropped item when drop in.

    PHP Code:
    private function dragDropHandler(e:DragEvent):void
    {
        
    e.preventDefault();
        var 
    dragSrc:Array = e.dragSource.dataForFormat('items') as Array;
        var 
    dragData:Object dragSrc[0];
        var 
    i:int this.groupGrid.calculateDropIndex(e);
        if(
    i>=this.dropGridData.length){
            
    i=this.dropGridData.length-1;
        }
            
    // do something else


    Any ideas?

    Thanks,
    George

  2. #2
    Actionscript 3, postproduction georgecalgary's Avatar
    Join Date
    Jun 2005
    Location
    Toronto
    Posts
    229
    Resolved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center