This question is locked. New answers and comments are not allowed.
Hi,
I am testing your data virtualization and I am having a few issues.
First of all it crashes the browser when you click the columns a couple of times to sort data (Loading aprx. 5000 rows).
Secondly how do you make the radgridview load all of the data and not just what you have scrolled through? I am missing some sort of progressbar saying 10% loaded.. 100% loaded ready for export. I would prefer not to invest in Telerik reporting.
I have used your code exactly as you specify with RIA:
Thanks!
//Frederik
I am testing your data virtualization and I am having a few issues.
First of all it crashes the browser when you click the columns a couple of times to sort data (Loading aprx. 5000 rows).
Secondly how do you make the radgridview load all of the data and not just what you have scrolled through? I am missing some sort of progressbar saying 10% loaded.. 100% loaded ready for export. I would prefer not to invest in Telerik reporting.
I have used your code exactly as you specify with RIA:
view = new VirtualQueryableCollectionView(_context.v_ExportSchemas) { LoadSize = 20, VirtualItemCount = 10000 };
var query = _context.GetExportSchemaForSchemaQuery(); view.ItemsLoading += (s, e) => { var queryToLoad = query.IncludeTotalCount(true).Sort(view.SortDescriptors).Where(view.FilterDescriptors).Skip(e.StartIndex).Take(e.ItemCount); _context.Load(queryToLoad).Completed += (sender, args) => { var lo = (LoadOperation)sender; if (lo.TotalEntityCount != -1 && lo.TotalEntityCount != view.VirtualItemCount) { view.VirtualItemCount = lo.TotalEntityCount; } view.Load(e.StartIndex, lo.Entities); }; };
Thanks!
//Frederik