This question is locked. New answers and comments are not allowed.
Hello,
I'm hitting a null reference exception when trying to set my ItemsSource to a CollectionViewSource. This same code works when using the built in listview but I'm getting this exception when using the RadListView. Can you please let me know if I'm trying to do something unsupported here?
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.UI.Xaml.Controls.Data.RadListView.get_ShouldDisplayEmptyContent()
at Telerik.UI.Xaml.Controls.Data.RadListView.Telerik.UI.Xaml.Controls.Data.ListView.IOrientedParentView.Measure(IGeneratedContainer container, RadSize availableSize)
at Telerik.UI.Xaml.Controls.Data.ListView.Model.LayoutController.MeasureEmptyContent(RadSize size)
at Telerik.UI.Xaml.Controls.Data.ListView.Model.LayoutController.Meas
Code:
<
UserControl.Resources
>
<
CollectionViewSource
x:Name
=
"CvsSections"
Source
=
"{Binding Sections}"
IsSourceGrouped
=
"True"
ItemsPath
=
"Items"
/>
</
UserControl.Resources
>
<
data:RadListView
ItemsSource
=
"{Binding Source={StaticResource CvsSections}}"
/>