Double Click on Scroll in RadGrid

18 posts, 0 answers
  1. Erik
    Erik avatar
    80 posts
    Member since:
    Jul 2007

    Posted 21 Aug 2007 Link to this post

    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.
  2. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 22 Aug 2007 Link to this post

    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
  3. Erik
    Erik avatar
    80 posts
    Member since:
    Jul 2007

    Posted 03 Sep 2007 Link to this post

    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

  4. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 05 Sep 2007 Link to this post

    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
  5. dootndo2
    dootndo2 avatar
    10 posts
    Member since:
    Dec 2006

    Posted 10 Jan 2008 Link to this post

    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
  6. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 11 Jan 2008 Link to this post

    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
  7. Erik
    Erik avatar
    80 posts
    Member since:
    Jul 2007

    Posted 27 Jul 2008 Link to this post

    Hi telerik,

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

    Thanks
  8. Erik
    Erik avatar
    80 posts
    Member since:
    Jul 2007

    Posted 01 Aug 2008 Link to this post


    Hi Telerik,

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


    Thanks



  9. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 05 Aug 2008 Link to this post

    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.
  10. Mark Blom
    Mark Blom avatar
    9 posts
    Member since:
    May 2008

    Posted 05 Aug 2008 Link to this post

    Thanks, this already helped me a lot!!!
  11. jjroman
    jjroman avatar
    6 posts
    Member since:
    Mar 2007

    Posted 07 Jul 2013 Link to this post

    is this resolved?
  12. Angel
    Angel avatar
    2 posts
    Member since:
    Aug 2013

    Posted 29 Aug 2013 Link to this post

    Hi I have this same mistakes with Q2 2011 SP1 version, I wonder if it was resolved in one of the new versions, Thanks.
  13. Angel
    Angel avatar
    2 posts
    Member since:
    Aug 2013

    Posted 09 Dec 2013 Link to this post

    Hello, just wanted to know if this bug is already solved, since in Q2 2013 SP1 version, still appears
  14. Marc Weintraub
    Marc Weintraub avatar
    11 posts
    Member since:
    Jul 2008

    Posted 20 Jul 2015 Link to this post

    This is still an issue in 2015 Q2.
  15. Dimitar
    Admin
    Dimitar avatar
    1929 posts

    Posted 21 Jul 2015 Link to this post

    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.
  16. Curtis
    Curtis avatar
    25 posts
    Member since:
    Oct 2014

    Posted 19 Oct Link to this post

    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.

  17. Curtis
    Curtis avatar
    25 posts
    Member since:
    Oct 2014

    Posted 19 Oct in reply to Curtis Link to this post

    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
  18. Hristo
    Admin
    Hristo avatar
    1059 posts

    Posted 20 Oct Link to this post

    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.
Back to Top