Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
385
How Scroll the rows in the tree grid on drag and drop
posted

Hi,

Is it possible to scroll across the rows by dragging a row from the top of the grid to the bottom of the grid?

Thanks,

Mani

Parents
  • 640
    Offline posted

    Hello Mani,

     

    Thank you for posting in our community.

     

    What I can suggest, for achieving your requirement, is to use the dragMove event of the IgxDragDirective and then to check for the position of the row based on the IgxTreeGridComponent body and if it is at the most top or bottom point to get the verticalScrollContainer that the IgxTreeGridComponent uses and to scroll the IgxTreeGridComponent using the scrollNext or scrollPrev method of the verticalScrollContainer. I crated a small sample illustrating my approach, which you can find here. Please test it on your side and let me know whether you find it helpful.

    Please let me know if you have any further questions or concerns.

    Regards,

    Viktor Kombov

    Entry Level Software Developer

    Infragistics, Inc.

Reply Children