Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

TreeGrid drop

$
0
0
I have a treeGrid with canReorderRecords(true).

This grid uses a FolderDropHandler and, inside, I use TreeNode parent = event.getFolder(); to determine the parent.

Almost everything works fine, only in the following case something is not working well:
Code:

-A
-B
-C
  -D
  -E

If I try to move E to A, event.getFolder() yields ALWAYS the root node, and *NOT* A, even if I drop the record exactly inside A.

I tried enabling setCanDropOnLeaves(true), but I get the same behavior. I am never getting A as the new parent, even though I drop the record exactly into A.
So what to do here?
Using smartgwt 5.1p power 2015-07-22

Viewing all articles
Browse latest Browse all 4756

Trending Articles