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

Scrollng Bug

2 Answers 14 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Timothy Kelley
Top achievements
Rank 1
Timothy Kelley asked on 28 Dec 2011, 10:59 PM
I'm using the RadGridView Silverlight control and I have 10,000 records in the view.
I have virtualization turned on.
ScrollMode="RealTime" //this is a requirement.

When I click the scroll bar and hold it down for 10 seconds and then let it go, it continues to scroll for at least 10 more seconds.
I need it to stop as soon as the mouse button comes up.  I've tried to hook into the ScrollChangedEvent with no sucess in hopes that I could stop some of the wound up events but the event never fires.

GridViewScrollViewer scrollViewer = DataGrid.ChildrenOfType<GridViewScrollViewer>().FirstOrDefault();

 //scrollViewer is always null

if (scrollViewer != null)

{

scrollViewer.ScrollChanged +=

 

new ScrollChangedEventHandler(scrollViewer_ScrollChanged);

}

}

 

void scrollViewer_ScrollChanged(object sender, ScrollChangedEventArgs e)

{

//never fires.

}


2 Answers, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 30 Dec 2011, 05:28 PM
Hi Timothy,

I tried to reproduce the issue you described, but without any success. May I ask you to open a support ticket and send a simple runnable project demonstrating the problem?

I am looking forward to hearing from you.


Regards,
Vera
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Timothy Kelley
Top achievements
Rank 1
answered on 30 Dec 2011, 05:32 PM
I was able to get it to work by registering the ScrollChanged event after the LayoutUpdated event was fired.

Tim
Tags
GridView
Asked by
Timothy Kelley
Top achievements
Rank 1
Answers by
Vera
Telerik team
Timothy Kelley
Top achievements
Rank 1
Share this question
or