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

Cell DoubleClick & LeftMouseDown

4 Answers 63 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Paolo
Top achievements
Rank 1
Paolo asked on 22 Mar 2012, 01:02 PM
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

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 22 Mar 2012, 05:07 PM
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 >>
0
Paolo
Top achievements
Rank 1
answered on 22 Mar 2012, 05:44 PM
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
0
Accepted
Maya
Telerik team
answered on 23 Mar 2012, 11:04 AM
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 >>
0
Paolo
Top achievements
Rank 1
answered on 23 Mar 2012, 11:28 AM
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
Tags
GridView
Asked by
Paolo
Top achievements
Rank 1
Answers by
Maya
Telerik team
Paolo
Top achievements
Rank 1
Share this question
or