This is a migrated thread and some comments may be shown as answers.

RadDataPager with CollectionViewSource

3 Answers 124 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
terry
Top achievements
Rank 1
terry asked on 23 Feb 2011, 12:51 AM
I'm having a problem getting the RadDataPager to work with a collectionviewsource, I have a grid with a number of Telerik controls, arranged something like a card view. This card view has a raddatapager, I have the grids datacontext is set to the raddatapagers pagedsource property.  Everything seems to work, I always get the first record of the collection displayed, but that's it I can't move through the records even though I know others exist.

Does anyone have a simple example that shows how to use the raddatapager with a collectionviewsource ?

Thanks 

3 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 23 Feb 2011, 10:58 AM
Hello terry,

Please, find the attached project where RadDataPager is working correctly with grid bound to a CollectionViewSource.

Let us know if you need further assistance.
 
Greetings,
Yordanka
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
terry
Top achievements
Rank 1
answered on 25 Feb 2011, 05:15 AM
Hello Yordanka

Thanks for the example but it didn't help, let me explain my project a little better. Have a grid panel with a number of telerik editor controls, this acts like a card view, the grid.datacontext is bound to a collectionviewsource.  Here is bits of the code

 

 

 

<CollectionViewSource x:Key="FirmViewModel" Source="{Binding Path=Model, Source={StaticResource firmViewModel}}" />

 

 

 

 

<CollectionViewSource x:Key="FirmIndividualViewModel" Source="{Binding Source={StaticResource FirmViewModel}, Path=FirmIndividuals}" />

 

 

 

 

<CollectionViewSource x:Key="FirmIndividualBenefitsViewModel" Source="{Binding Source={StaticResource FirmIndividualViewModel}, Path=FirmIndividualBenefitsFirmIndividualBenefits}" />

 


....

 

 

 

<Grid DataContext="{Binding Source={StaticResource FirmIndividualBenefitsViewModel}}" Name="IndBenefitsgrid">

 


......

 

 

 

<telerik:RadDataPager Height="23" Name="radDataPager1" Source="{Binding ElementName=IndBenefitsgrid, Path=DataContext}" />

 


In your example you have RadDataPager.Source binding set to the telerik radgridview items property, but the grid panel doesn't have any such property, how would I bind the raddatapager in my example ?


0
Yordanka
Telerik team
answered on 25 Feb 2011, 02:24 PM
Hi terry,

We have modified the sample project to demonstrate the scenario you want to achieve. Please, take a look and let us know in case it doesn't help.
 
Best wishes,
Yordanka
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
DataPager
Asked by
terry
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
terry
Top achievements
Rank 1
Share this question
or