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

MouseLeftButtonDown Defect?

3 Answers 66 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 22 Mar 2010, 08:44 PM

Hello,

I have my TreeViewItems displaying a custom drop down control, so a user selects a node a drop down list appears.

The problem I am facing is when the user selects an item in the drop down control the same MouseLeftButtonDown event is being captured by any TreeViewItems directly underneath where the user clicked. So what is happening is nodes are being expanded/collapsed even though the user has not directly clicked on them.

I was hoping by setting e.handled to "true" on event MouseLeftButtonDown (against the drop down item) this would suppress any further handling of this type of UI event. I can only assume the RadTreeView is ignoring this and actioning the event anyway, causing nodes to expand and collapse without the user telling them to.

My question is, can you verify e.handled is not being checked and if not would it be possible to change how this behaves, so when an event further down the chain marks this event as handled, you respect that setting?

If this is not possible, do you have any other suggestions to my problem?

Regards,
James.

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 25 Mar 2010, 05:32 PM
Hi James,

I tried to reproduce the issue you described, but everything works as expected on our side. Can you please elaborate a bit on the scenario you're implementing. What is the custom drop down control you're using? Can you send us a sample of your code or a simple project, reproducing the issue. Any additional information that you can give us, will help us further investigate the issue you're facing.

Greetings,
Tina Stancheva
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
James
Top achievements
Rank 1
answered on 26 Mar 2010, 09:48 AM
Hi Tina,

Thanks for attempting to solve my problem with MouseLeftButtonDown - I have found a solution though. The fault was with my code not Teleriks. The culprit was my Prisim Command firing during SelectionChanged causing the OnMouseLeftButtonUp event not to fire at all. I've refactored my code so the Prisim Command is fired at a later stage.

Regards,
James
0
Bobi
Telerik team
answered on 26 Mar 2010, 11:40 AM
Hi James,

We are glad to hear that the problem is already solved.
Please do not hesitate to ask us if you have any other questions or need some more help.

Sincerely yours,
Bobi
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.
Tags
TreeView
Asked by
James
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
James
Top achievements
Rank 1
Bobi
Telerik team
Share this question
or