Hi Jasper,
You would want to initially set the ITemsSource with an empty collection of you need the DataGrid to render the columns.
This lets the DataGrid can observe the type and read the properties. This will cause the columns to be rendered because the properties have been read. Then when you're ready to load the data, just use Add() for the fetched items.
Here are two examples:
MVVM Approach
If you're using data binding
Code Behind Approach
If you're not using MVVM and are using code-behind, then you initialize the DataGrid with an empty collection:
I've attached a demo that verifies this.
Further Investigation
If you have any further issues, please
open a Support Ticket and attach the code you're using so we can directly investigate.
Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items