[CLOSED] Drag and Drop between grids, knowing the row upon which dragged item was dropped

  1. #1

    [CLOSED] Drag and Drop between grids, knowing the row upon which dragged item was dropped

    I'm implementing drag and drop of a row from one grid to another. All of the examples simply take the dragged row and add it to the data source of the dropped row. In my situation, I need to know upon what row the dragged item was dropped to update/create a relationship between the two. With the dragged row it's easy because the row is selected but the dropping action doesn't seem to select rows in the "droppee" grid. Are there examples out there of how to implement this?

    Thanks,
    Robb
    Last edited by Daniil; Oct 04, 2012 at 7:20 PM. Reason: [CLOSED]
  2. #2
    Hi Robb,

    If you would add this
    alert(GridPanel2.getView().findRowIndex(e.getTarget()));
    into the notifyDrop function in this example
    https://examples1.ext.net/#/DragDrop...Grid_to_Grid1/
    you will see the row index.

Similar Threads

  1. Replies: 4
    Last Post: Jun 08, 2012, 11:05 AM
  2. [CLOSED] Drag & Drop Between Dynamic grids
    By imaa in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Dec 05, 2011, 1:34 PM
  3. [CLOSED] Drag and Drop between grids
    By Stefanaccio in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 01, 2010, 11:58 AM
  4. [CLOSED] [1.0] Restrict rows to be Dragged and Dropped
    By MP in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 29, 2010, 2:22 PM
  5. drag and drop between tow grids
    By simbal in forum 1.x Help
    Replies: 2
    Last Post: Apr 26, 2009, 9:36 PM

Posting Permissions