Telerik UI for Windows 8 XAML

This topic describes how to enable incremental loading in RadDataGrid.

To enable incremental loading in RadDataGrid, you have to use as its ItemsSource a collection that implements the ISupportIncrementalLoading interface. You can also take advantage of the IncrementalLoadingCollection which is our default implementation.


Loading data on demand can be triggered either automatically(by scrolling to the bottom) or using a button. To change this option, you can use the RadDataGrid.IncrementalLoadingMode that accepts two values: Explicit amd Auto.


Data Grid-Data Virtualization-Incremental Loading
XAML Copy imageCopy
<telerikGrid:RadDataGrid x:Name="grid" ItemsSource="{Binding}"  IncrementalLoadingMode="Explicit"/>
C# Copy imageCopy
IncrementalLoadingCollection<Data> collection = new IncrementalLoadingCollection<Data>(
    async count =>
        return (from c in Enumerable.Range(0, 10)
                select new Data { Category = "Name " + c }).ToList();
    }) { BatchSize = 100 };

this.DataContext = collection;
XAML Copy imageCopy
public class Data
    public string Category { get; set; }

    public double Value { get; set; }