17 Answers, 1 is accepted
We could not reproduce this issue locally. At this point we did not experienced any troubles with double click and grid vertical scroll. Will be possible for you to give more details on the situation where the issue occurs? If you prefer to send us your application please open a support ticket and we will review what is wrong.
Best wishes,
Jack
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thanks for your reply. The situasion was: I Loaded all data to grid around 1000 rows.
Then in DoubleClick event, if the user double click it will select lets say the customer id.
The problem occurred when you double click on the vertical scrollbar to scroll it down faster and the grid will select the value when the scroll stopped. Actually we just wanted to scroll down using double clik on the scroll bar
This is a really strange issue. Is it possible that you accidentally double clicked on the grid surface instead on the scroll bars? Please open a support ticket and send us your application, so we can investigate the situation.
Regards,
Jack
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thanks.
dootndo2
Thank you for reporting this issue.
We managed to reproduce it locally. Currently, we are refactoring the RadGridView and will revise the whole scrolling subsystem. We will address the issue in our upcoming release. Please, excuse us for the inconvenience.
Don't hesitate to contact us if you have other questions.
Greetings,
Jack
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Any solution for this issue? My version is Q1 2008 SP1 still have this problem
Thanks
Hi Telerik,
Still no solution for this matters? This problem still exist in Q2 2008.
Thanks
Unfortunately, the issue is not resolved yet. However, I have prepared you a simple workaround.
1. You can subscribe to the CurrentRowChanging event and MouseDoubleClick event of RadGridView.
this.radGridView1.CurrentRowChanging += new CurrentRowChangingEventHandler(radGridView1_CurrentRowChanging);
this.radGridView1.MouseDoubleClick += new MouseEventHandler(radGridView1_MouseDoubleClick);
}
2. Create a bool flag which I've called cancelChanging.
private bool cancelChanging = false;
3. Initialize the flag when the user clicks on the scrollbar
void radGridView1_MouseDoubleClick(object sender, MouseEventArgs e)
{
cancelChanging = false;
RadElement element = this.radGridView1.Behavior.GetHoveredRadElement();
while (element != null)
{
if (element.GetType() == typeof(RadScrollBarElement))
{
cancelChanging = true;
break;
}
element = element.Parent;
}
}
4. If the flag is true cancel the changing of the current row.
void radGridView1_CurrentRowChanging(object sender, CurrentRowChangingEventArgs e)
{
if (cancelChanging)
{
e.Cancel = true;
cancelChanging = false;
}
}
I hope this helps.
We are sorry for the inconvenience caused.
Greetings,
Boyko Markov
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Thank you for writing.
I was able to reproduce a case where the CellClick event is fired. It is fired when one is scrolling with the child template scrollbar and then releases the mouse. I have logged this case in our Feedback Portal. You can track the item for status changes and add your vote for it here.
To workaround this issue you can check if the GridViewCellEventArgs argument refers to a column:
void
radGridView1_CellClick(
object
sender, GridViewCellEventArgs e)
{
if
(e.Column !=
null
)
{
Console.WriteLine(
"CellClick"
);
}
}
Your Telerik Points have been updated for this report.
Should you have any other questions do not hesitate to ask.
Kind regards,
Dimitar
the Telerik team
Has this been fixed/addressed yet?
I'm running 2017 Q2 and the issue is quite problematic. The 'work around' is quite a hack and I'd rather not have to resort to calculating where the mouse is in order to turn on/off the trapping of the double-click event (I will if there's no alternative!) but I'm not excited about it.
For what it's worth the previously posted 'work around' only worked sometimes for me. I don't know if its because of the custom theme I'm using or just the volume of rows I'm dealing with causing a sluggish response from the grid trapping the doubleclick event but here's my modification on the posted work around that has worked for me 100% since implementation:
For the two or three dozen of us VB.Net developers still out there - you may also want to add these to the top of your Form source:
Imports Telerik.WinControls
Imports Telerik.WinControls.UI
Cheers!
-C
Private
cancelChanging
As
Boolean
Private
Sub
gridClaimants_MouseDoubleClick(sender
As
Object
, e
As
MouseEventArgs)
Handles
gridClaimants.MouseDoubleClick
cancelChanging =
False
Dim
element
As
RadElement = gridClaimants.Behavior.GetHoveredRadElement()
While
element IsNot
Nothing
If
TypeOf
element
Is
RadScrollBarElement
Then
cancelChanging =
True
Exit
While
End
If
element = element.Parent
End
While
If
Not
cancelChanging
Then
If
Not
IsNothing(gridClaimants.CurrentRow)
Then
' Do some work here.
End
If
End
If
End
Sub
Private
Sub
gridClaimants_CurrentRowChanging(sender
As
Object
, e
As
CurrentRowChangingEventArgs)
Handles
gridClaimants.CurrentRowChanging
If
cancelChanging
Then
e.Cancel =
True
cancelChanging =
False
End
If
End
Sub
Thank you for sharing your solution. I would like to point, that the issue was fixed in the R3 2015 SP1 release. If it is possible please upgrade.
I hope this helps.
Regards,
Hristo
Progress Telerik