I tried calling dragscroll and it did not work on first try. On
investigating further into the ListBase class, I found out that the
following two lines are preventing the dragscroll() from running.

  // sometimes, we'll get called even if interval has been cleared
        if (dragScrollingInterval == 0)
            return;

The variable is private and is always 0 and hence the function exits
without doing any scrolling.

I extended the datagrid and copied the code from dragScroll() to a
function in my datagrid replacing the above variable and magically, it
all worked. Not sure if this is the best way, but it atleast solves my
 problem. Any further thoughts?


--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> See if you can get dragScroll to run during dragOver
> 
>  
> 
> ________________________________
> 
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of rueter007
> Sent: Thursday, November 15, 2007 11:19 AM
> To: [email protected]
> Subject: [flexcomponents] Drag and Drop within DataGrid
> 
>  
> 
> Hello,
> 
> I am trying to achieve dragging and dropping items within a datagrid.
> Everything is fine as long as the drag and drop occurs within the
> visible area of the grid. But when I have more items than what the
> grid can show, and I want to drop an item at a position below the
> visible area, the datagrid does not scroll down currently. I was
> thinking one solution would be to scroll the datagrid programmatically
> but could not figure out how. Anyone has any ideas on how to achieve
> Drag-and-Drop within the datagrid without this scrolling limitation?
> 
> thanks,
> venkat
>


Reply via email to