Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Drop and Drop Broken when ListGrid is Grouped

    I discovered a bug in the drag and drop portion of the ListGrids in Smart Client 10+. If you have a list and group it (it doesn't matter the group by field) and they try to drag and drop it will not let you drag and drop. To be clear I had it set to copy and not move.

    Thanks!

    #2
    We have just committed a fix for this problem, you'll find it applied in the next nightly build (both for 5.0 and for latest development version).

    Comment


      #3
      Thank you. I'm looking forward to testing it as soon as it becomes available.

      Comment


        #4
        So it technically works right now, but there is one additional bug that I found. If you override the transferRecords method in the ListGrid and take a look at the dropRecords that are passed into the transferRecords method you will see that it behaves different than expected.

        For example if you drag and drop one item from a grouped list you will get two items in the dropRecords array. The first item is the groupNode and the second item is the actual record that was dropped. I can easily work around this bug, but you may want to fix it for everyone else.

        Example of the groupNode object

        0: Object
        $52e: true
        $74h_selection_41: true
        _baseStyle: null
        _canEdit: false
        canDrag: false
        customStyle: "groupNode"
        groupMembers: Array[4]
        groupName: "position"
        groupParentId: undefined
        groupValue: "Hello World"
        isFolder: true
        name: "0_0"
        position: "Hello World"
        singleCellValue: "Hello World"
        __proto__: Object
        1: Object
        This is the object that is expected to be passed in.

        Thanks Again!

        Comment


          #5
          This issue has been fixed now, thanks for the heads up

          Comment

          Working...
          X