Getting Started with WPF VirtualGrid
This tutorial will walk you through the required steps for using RadVirtualGrid.
Adding Telerik Assemblies Using NuGet
To use RadVirtualGrid when working with NuGet packages, install the Telerik.Windows.Controls.VirtualGrid.for.Wpf.Xaml package. The package name may vary slightly based on the Telerik dlls set - Xaml or NoXaml
Read more about NuGet installation in the Installing UI for WPF from NuGet Package article.
With the 2025 Q1 release, the Telerik UI for WPF has a new licensing mechanism. You can learn more about it here.
Adding Assembly References Manually
If you are not using NuGet packages, you can add a reference to the following assemblies:
- Telerik.Licensing.Runtime
- Telerik.Windows.Controls
- Telerik.Windows.Controls.VirtualGrid
- Telerik.Windows.Data
Adding RadVirtualGrid to the Project
Defining RadVirtualGrid Declaratively
<telerik:RadVirtualGrid x:Name="VirtualGrid"/>
Populating with Data Manually
In order the control to be populated with data, its InitialRowCount and InitialColumnCount properties need to be set.
RadVirtualGrid needs to be initially defined with a fixed amount of rows and columns. The below listed properties are exposed for achieving this. An important note is that when additional rows or columns are added at runtime, the values of these properties remain unmodified, but the capacity of the control increases. More information on inserting rows and columns can be found in the Insert and Remove Data topic.
InitialRowCount—Gets or sets the amount of initially loaded rowsInitialColumnCount