jQuery UI Widgets Forums Plugins Validator, Drag & Drop, Sortable Drag and Drop – detecting the edge of a division

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 8 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • alastairwalker
    Participant

    I am using drag and drop to re-order rows in a grid.
    I have no problems if the selected item (i.e. as selected on drag start) is in the save view (display page) as the drag target item.

    But the problem occurs when the drag start selected item is on a different scroll page with respect to the drag end selected item.

    When the cursor hits the border of the grid (i.e. top or bottom) I need to auto scroll the grid rows up or down (by a page) so that the drag end item can then be selected – when it comes into view.

    It seems to me I need to use the dragging event to detect the grid top or bottom border – but I am not sure how to do this – other than trying to detect a div change.

    Any ideas to address this matter will be really appreciated!

    Alastair


    Hristo
    Participant

    Hello alastairwalker,

    Could you like to provide us one example in jseditor/fiddle for better analyze.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.