I can't get this to work. I have a RadGridView with following properties set:
In code behind, the DataContext and ItemsSource are set to a new ObservableCollection<object>() which is populated when the data is retrieved from a WCF service. The Data object is populated in the callback function of the asyncronous call to the service like this:
Now, the grid displays the data, that is not an issue. The problem is that the DataLoadMode="Asynchronous" EnableRowVirtualization="True" bit does not seem to kick in. The browser hangs with large amounts of data going over the wire and I'm not sure if there is anything in particular I should do in the data contracts or otherwise to get this to load asynchronously.
Any help would be greatly appreciated.
Thank you
<telerik:RadGridView x:Name="answers" ShowGroupPanel="False" AllowDrop="False" CanUserReorderColumns="False" CanUserSortColumns="False" DataLoadMode="Asynchronous" AutoGenerateColumns="True" ScrollMode="Deferred" EnableRowVirtualization="True" SelectionMode="Extended" /> |
ServiceResult.AnswerList.ToList().ForEach(Data.Add); |
Any help would be greatly appreciated.
Thank you