RadTreeViewDropPosition - Curious Behaviour

2 posts, 0 answers
  1. Andy
    Andy avatar
    34 posts
    Member since:
    Jan 2009

    Posted 02 Jan 2009 Link to this post

    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

     

  2. Andy
    Andy avatar
    34 posts
    Member since:
    Jan 2009

    Posted 02 Jan 2009 Link to this post

    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...
Back to Top