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

Data Virtualization Issue with scroll bar

3 Answers 69 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Aman
Top achievements
Rank 1
Aman asked on 17 Aug 2011, 09:34 PM
I have found an issue in Gridview with data virtualization. I checked the demo sample .. it behave same.

Scroll down to the end of the grid with data virtulization on. Then apply any filter to see the filter data. The grid goes blank.
If u do same with Scroll bar at the top .. it works fine.

Is there any way to resolve it?

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 19 Aug 2011, 09:38 AM
Hello,

We will need a bit more time to investigate the issue. I will get back to you once we have more information. 
Thank you for your patience. 

Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Zachary
Top achievements
Rank 1
answered on 11 Jul 2012, 04:58 PM
I also have the same issue.  I am using paging with row virtualization on the GridView.  Due to an issue with the VirtualQueryableCollectionView and mixing paging with virtualized scrolling, I have to programmatically scroll to the top before "Loading" the view with the new entities.  So I call
this.RadGridView1.ChildrenOfType<GridViewScrollViewer>().First().ScrollToTop();
before updating the View.  However, when I do this, it refreshes with new data, but the virtualized rows show as blank.  If I scroll down and then back up all the rows data will show... is there a way to programmatically refresh the virtualized UI?

Thanks.
0
Zachary
Top achievements
Rank 1
answered on 11 Jul 2012, 05:57 PM
FYI, I ended up hacking a solution:

GridView.ChildrenOfType<Telerik.Windows.Controls.GridView.GridViewScrollViewer>().First().ScrollToTop();
View.Load(args.StartIndex, query.Entities);
GridView.ScrollIntoViewAsync(query.Entities.LastOrDefault(),
    (x) => GridView.ScrollIntoView(query.Entities.FirstOrDefault()));
Scroll to the top to insert the records in the correct location, then scroll to the bottom ASYNC to update the UI virtualization, then scroll back up to the top after complete.
Tags
GridView
Asked by
Aman
Top achievements
Rank 1
Answers by
Maya
Telerik team
Zachary
Top achievements
Rank 1
Share this question
or