Announcement

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

  • visual feedback when dropping on TreeGrid without folderIcon

    Hi,

    Could it be possible to implement some visual feedback using CSS class for particular row when dropping something on TreeGrid when folderIcon is not used?
    Exactly like TreeGrid.showDropIcons but for style (ListGrid.dropBaseStyle maybe?)

    Code:
    isc.TreeGrid.create({
    ID: "employeeTree",
    width: 500,
    height: 400,
    dataSource: "employees",
    canDragRecordsOut:true,
    canAcceptDroppedRecords:true,
    autoFetchData: true,
    folderIcon: null
    });
    Best regards,
    Janusz

  • #2
    You can do this without a new property - just implement a dropMove handler than uses refreshRow on row transitions, and use existing override points such as getBaseStyle() or getCellCSSText() to implement styling that appears only during a drop interaction.

    Comment


    • #3
      Should I detect row transitions using ListGrid.getEventRow?

      Comment


      • #4
        Yes

        Comment

        Working...
        X