I have thisRadDataPager
<telerik:RadDataPager x:Name="radDataPager" Grid.Row="1" Source="{Binding ItemCollection}" DockPanel.Dock="Bottom" PageSize="400" DisplayMode="First, Last, Next, Previous, Text" />
I bind to it in the ItemsSource of a RadGridView:
<Controls:RadGridView x:Name="_rgvAdSales"
SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
ItemsSource="{Binding PagedSource, ElementName=radDataPager}"
EnableRowVirtualization="False"
AutoGenerateColumns="False"
SelectionMode="Extended">...
My columns look like this:
<Controls:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}" IsReadOnly="True" />
Resharper draws a line under Name (the path of the binding in the column) and says this:
Cannot resolve property 'Name' in data context of type 'Telerik.Windows.Data.IPagedCollectionView'
I have tried to add d:DataContext, but I cannot get that to work.
If I bind the ItemsSource of RadGridView directly to the ItemCollection on the ViewModel, then resharper does not give any warnings.
Do you know of any good way (ie. not causing performance loss) to tell resharper the datatype of the ItemSource or datacontext of the column?
Thanks,