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

Double Click on Scroll in RadGrid

17 Answers 366 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 22 Aug 2007, 04:47 AM
Hi,

I try to double click on the scroll, it just suddenly select the row not scroll down. My purpose it just to scroll down in grid.

Please help.

17 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 22 Aug 2007, 11:52 AM
Hello eriksurya,

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
0
Erik
Top achievements
Rank 1
answered on 03 Sep 2007, 07:07 AM
Hi Telerik,

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

0
Jack
Telerik team
answered on 05 Sep 2007, 10:38 AM
Hi eriksurya,

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
0
dootndo2
Top achievements
Rank 1
answered on 11 Jan 2008, 03:26 AM
We loaded the 2007 Q3 for our project today.  This issue is happening to us as well.  Normally you can click on the scrollbar to make it move to that location (or large move value).  When you click on it rapidly, or double click (as if you were moving down the grid) items get selected.

Thanks.

dootndo2
0
Jack
Telerik team
answered on 11 Jan 2008, 08:33 AM
Hi 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
0
Erik
Top achievements
Rank 1
answered on 28 Jul 2008, 01:34 AM
Hi telerik,

Any solution for this issue? My version is Q1 2008 SP1 still have this problem

Thanks
0
Erik
Top achievements
Rank 1
answered on 02 Aug 2008, 04:13 AM

Hi Telerik,

Still no solution for this matters? This problem still exist in Q2 2008.


Thanks



0
Boyko Markov
Telerik team
answered on 05 Aug 2008, 12:24 PM
Hello Erik,

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.
0
Mark Blom
Top achievements
Rank 1
answered on 05 Aug 2008, 01:17 PM
Thanks, this already helped me a lot!!!
0
jjroman
Top achievements
Rank 2
answered on 07 Jul 2013, 06:27 PM
is this resolved?
0
Angel
Top achievements
Rank 1
answered on 29 Aug 2013, 04:29 PM
Hi I have this same mistakes with Q2 2011 SP1 version, I wonder if it was resolved in one of the new versions, Thanks.
0
Angel
Top achievements
Rank 1
answered on 09 Dec 2013, 03:14 PM
Hello, just wanted to know if this bug is already solved, since in Q2 2013 SP1 version, still appears
0
Marc Weintraub
Top achievements
Rank 1
answered on 20 Jul 2015, 07:56 PM
This is still an issue in 2015 Q2.
0
Dimitar
Telerik team
answered on 21 Jul 2015, 03:11 PM
Hi Mark,

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
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Curtis
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 19 Oct 2017, 11:02 PM

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.

0
Curtis
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 19 Oct 2017, 11:25 PM

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
0
Hristo
Telerik team
answered on 20 Oct 2017, 02:44 PM
Hello Curtis,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Erik
Top achievements
Rank 1
Answers by
Jack
Telerik team
Erik
Top achievements
Rank 1
dootndo2
Top achievements
Rank 1
Boyko Markov
Telerik team
Mark Blom
Top achievements
Rank 1
jjroman
Top achievements
Rank 2
Angel
Top achievements
Rank 1
Marc Weintraub
Top achievements
Rank 1
Dimitar
Telerik team
Curtis
Top achievements
Rank 1
Iron
Iron
Veteran
Hristo
Telerik team
Share this question
or