I myself got the answer for this. I found out where I am missing. I
made the mistake of calling calculateDropIndex in dragEnter event,
which I should have called in event dragDrop. So, the code is

        public function dragDropHandler(event:DragEvent):void {
                 trace("dragDropHandler.."+adg.calculateDropIndex(event));
        }
adg is the id of the advanceddatagrid

On Apr 16, 4:32 pm, Balki <[email protected]> wrote:
> Hi,
>
> I need to do a drag/drop of rows in Advanced DataGrid. I have done
> this, but my requirement is that I need to identify the row index
> after the drop has happened. Can some one help me on this ?
>
> That is, if I have 3 rows and I drag the 1st row and move it to 3rd
> position, the row ordering will change from 1,2,3 to 2,3,1 and I need
> to get the row index 3 here. I checked about the method
> calculateDropIndex(event) and it always returned 3 (which is the row
> count here).
>
> Can anyone help on this ?
>
> Thanks in advance
> Bala
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/flex_india?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to