jQuery UI Widgets Forums Grid drag and drop – getcellatposition

This topic contains 2 replies, has 2 voices, and was last updated by  Dimitar 11 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • drag and drop – getcellatposition #30617

    aoverton07
    Participant

    If you have a grid that is only half full of rows and you use the getcellatposition method on coordinates that are below any of row (yet still in the bounds of the grid it will return a cell pointing to the 0th (first) row and column of the id. This can be problematic if you are implementing drag and drop. Is it possible to account for this? shouldnt getcellatposition only return a cell if the coordinates are above a cell of data? Not just above the grid?

    drag and drop – getcellatposition #30619

    aoverton07
    Participant

    scratch that, misdiagnoses, the real problem is that when you are using the grids ‘getrowdata’ method, and you pass it a variable that is UNDEFINED for the row parameter, it returns the data for the 0th (first) row, when it should probably return null…

    drag and drop – getcellatposition #30669

    Dimitar
    Participant

    Hello aoverton07,

    The method getrowdata expects an integer as a parameter. If you pass undefined, it will return the data of the first row. This is by design and prevents erroneous behaviour.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.