Double Click on Scroll in RadGrid

15 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. UI for WinForms is Visual Studio 2017 Ready
  4. 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

  5. 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
  6. 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
  7. 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
  8. 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
  9. 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



  10. 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.
  11. 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!!!
  12. jjroman
    jjroman avatar
    4 posts
    Member since:
    Mar 2007

    Posted 07 Jul 2013 Link to this post

    is this resolved?
  13. 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.
  14. 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
  15. 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.
  16. Dimitar
    Admin
    Dimitar avatar
    1415 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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready