MouseLeftButtonDown error?

3 posts, 0 answers
  1. David Walton
    David Walton avatar
    6 posts
    Member since:
    Sep 2009

    Posted 26 Jul 2010 Link to this post

    Hi!

    I've got a RadTreeView and I don't seem to be able to capture a MouseLeftButtonDown event.  Left clicks & double-clicks work as expected expanding & collapsing the tree branches.  Also, left click selects and drag & drop work as expected.

    I'm trying to hack the treeview to expand/collapse on a right click and perform some custom behavior on double-click.  I've disabled single-click and double-click expand/collapse (which inhibits that behavior appropriately), however no amount of left-clicking or double-clicking fires the MouseLeftButtonDown event.

    Any thoughts?

    Thanks!
    -d
  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 27 Jul 2010 Link to this post

    Hello David,

    Yes, indeed we handle the MouseLeftButtonDown event in the TreeView.

    If you want to handle handled events, you can register for them using the AddHandler method:

    someElement.AddHandler(FrameworkElement.MouseLeftButtonDownEvent, OnMLBF, true);

    This overload of the method (with true) will handle handled events.

    Sincerely yours,
    Miroslav
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. David Walton
    David Walton avatar
    6 posts
    Member since:
    Sep 2009

    Posted 27 Jul 2010 Link to this post

    This sounds promising- thanks for the quick response!
Back to Top