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

MouseLeftButtonDown error?

2 Answers 29 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
David Walton
Top achievements
Rank 1
David Walton asked on 27 Jul 2010, 01:31 AM
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 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 27 Jul 2010, 09:34 AM
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
0
David Walton
Top achievements
Rank 1
answered on 27 Jul 2010, 05:32 PM
This sounds promising- thanks for the quick response!
Tags
TreeView
Asked by
David Walton
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
David Walton
Top achievements
Rank 1
Share this question
or