RadDataPager with CollectionViewSource

4 posts, 0 answers
  1. terry
    terry avatar
    16 posts
    Member since:
    Nov 2008

    Posted 22 Feb 2011 Link to this post

    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 
  2. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 23 Feb 2011 Link to this post

    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!
  3. UI for WPF is Visual Studio 2017 Ready
  4. terry
    terry avatar
    16 posts
    Member since:
    Nov 2008

    Posted 24 Feb 2011 Link to this post

    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 ?


  5. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 25 Feb 2011 Link to this post

    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!
Back to Top