Does it matter of the collection behind the property supports paging?
4 Answers, 1 is accepted
You can check more about the ElementName Bindings here. The same is for ElementName binding to a DataPager. Another approach would be to bind everything to a property from your ViewModel using a StaticResource to specify the right Source (as explained here). The difference is that with the first option you rely on the visual element that should be present, with the second option you do not.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I didn't see anywhere where it essentially said "it doesn't matter" which way you do it.
It does matter.
When you use ElementName Binding, then you should be sure that the visual element will be presented. For example if the element is defined inside a DataTemplate which has still not been loaded, then it will not be available.
On the other hand specifying a Source with a valid StaticResource will always work. That is why I would suggest you that option.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
When I say it "doesn't matter" I just mean that it appears that it works fine to wire them up either way. It just takes some learning to understand that when looking through the various examples.
Also a bit difficult to wrap my head around is when both the collection and the DataPager can be assigned PageSize properties. Who "wins"?