Strange behaviour of scroll bar with drag and drop

3 posts, 0 answers
  1. Hans
    Hans avatar
    2 posts
    Member since:
    Jan 2011

    Posted 09 Mar 2011 Link to this post

    Hello,
    I have the following problem:
    I used the RadGridView in a Silverlight application and enabled Drag and Drop on it. The problem is that if I first select a row and then move the horizontal or vertical scrollbar with the mouse the cursor shows the symbol like when it is dragging and the grid scrolls in a very unconvenient way.
    You can find my sample project here:
    http://dl.dropbox.com/u/17384/DragDropProblem.zip

    Thanks for any help
    Regards
    Manfred
  2. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 10 Mar 2011 Link to this post

    Hi Hans,


    In order to disable drag while over the scrollbar the following code will be required in the OnDragQuery:

    Copy Code
    e.QueryResult = e.GetElement<ScrollBar>(e.Options.MouseClickPoint)==null;

    Let me know if you have any further questions.

    All the best,
    Tsvyatko
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. DevCraft banner
  4. Hans
    Hans avatar
    2 posts
    Member since:
    Jan 2011

    Posted 12 Mar 2011 Link to this post

    Hi Tsvyatko,
    this line of code solved my problem! Thank you very much!!

    Regards
Back to Top