Cell DoubleClick & LeftMouseDown

5 posts, 1 answers
  1. Paolo
    Paolo avatar
    13 posts
    Member since:
    Mar 2012

    Posted 22 Mar 2012 Link to this post

    Hi Telerik team,

    I'm having trouble with mouse events in RadGridView.
    In my application, I have an handler attached to celldoubleclick event, and another one attached to the leftmousedown on cell (does nothing in all cells but one).

    So, when I double click the cell with both handlers set:

    - the double click is triggered: OK
    - the leftmousedown is triggered twice: I don't want mouse left down to trigger when doubleclick si triggered too!

    Any suggestion to solve this?

    Thanks in advance

    Paolo
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 22 Mar 2012 Link to this post

    Hi Paolo,

    Generally, that would be the expected behavior. Could you clarify what is the exact scenario that you want to accomplish so that I could probably suggest a possible approach for achieving it ?  

    All the best,
    Maya
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Paolo
    Paolo avatar
    13 posts
    Member since:
    Mar 2012

    Posted 22 Mar 2012 Link to this post

    Hi Maya, thanks for your quick answer.

    So, in my grid I have a list of tasks: the first column shows the task ID, the other columns contain other task infomations.
    On double clicking the row (no matter which cell), task detail has to be shown in a new window: this works.
    A single click on task ID should have the same result, but what I get is that 3 windows are opened (1 triggered on doubleclick, 2 on leftmousedown).

    Thanks for your help!

    Paolo
  4. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 23 Mar 2012 Link to this post

    Hello Paolo,

    I am attaching a sample project illustrating how you can achieve similar functionality. Please take a look at it and let me know whether it corresponds to your requirements.  

    Greetings,
    Maya
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  5. Paolo
    Paolo avatar
    13 posts
    Member since:
    Mar 2012

    Posted 23 Mar 2012 Link to this post

    Hi Maya,

    your solution works great, thanks!
    Yesterday evening I implemented another solution too: I defined a DataTemplate for TaskId column with an hyperlink, so I've been able to replace the LeftMouseDown with the hyperlink Click event and use doubleclick event as usual for every grid cell.

    Thanks a lot for your help!

    Paolo
Back to Top