Hi,

In a TreeGrid I would like to enable or disable nodes of the tree depending on their properties.
How do I detect the model in the tree where my mouse currently moves over?

Thanx,

mm

Code:
TreeGridDropTarget<MyModel> target = new TreeGridDropTarget<MyModel>(grid);
        target.setAllowSelfAsSource(true);
        target.setAllowDropOnLeaf(false);
        target.setFeedback(DND.Feedback.BOTH);
        target.addDragMoveHandler(new DndDragMoveHandler() {
            @Override
            public void onDragMove(DndDragMoveEvent event) {
                MyModel m = .......  // TO DO please add code here
                Info.display("onDragMove()", m.toString());
                if (m.acceptsDrops()) {
                    event.getStatusProxy().setStatus(true);
                } else {
                    event.getStatusProxy().setStatus(false);
                }
            }
        });