MouseLeftButtonDown Defect?

4 posts, 0 answers
  1. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 22 Mar 2010 Link to this post

    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.

  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 25 Mar 2010 Link to this post

    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.
  3. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 26 Mar 2010 Link to this post

    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
  4. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 26 Mar 2010 Link to this post

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