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
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
0
Hi Paolo,
Maya
the Telerik team
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 ?
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
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
Hello Paolo,
Maya
the Telerik team
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.
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
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