This is a migrated thread and some comments may be shown as answers.

RadTreeViewDropPosition - Curious Behaviour

1 Answer 49 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 02 Jan 2009, 06:02 AM
I'm not sure if this is an issue or intended behavior, but...in one version of my code, I check as per below to decide wether or not to do a drag / drop operation. It works fine. But if I comment out the case for 'Over', the 'Above' and 'Below' still fire when I am physically positioned 'over' a node (as per the graphical clues, line etc that the tree view gives to show you where you are positioned).

case

 

RadTreeViewDropPosition.Over:

 

 

// do stuff

 

 

break;

 

 

case RadTreeViewDropPosition.Above:

 

// do stuff

 

break;

 

 

case RadTreeViewDropPosition.Below:

 

// do stuff

 

break;

Surely, if I am 'over' the node, nothing in my case statement shoud execute if I have commented out or removed the check for 'RadTreeViewDropPosition.Over'? Yet mine detects teh 'over' when teh case is there, but seems to fall back on the 'above' or 'below' when it's not...

Cheers,
Andles

 

1 Answer, 1 is accepted

Sort by
0
Andy
Top achievements
Rank 1
answered on 02 Jan 2009, 06:21 AM
How stupid do I feel? Basically, my commenting out was inclusive of the case's break statement - consequently, the code makes sense.  Apologies...still not quite over New Years eve...
Tags
TreeView
Asked by
Andy
Top achievements
Rank 1
Answers by
Andy
Top achievements
Rank 1
Share this question
or