RadDataPager.PageIndex behavior changed between SL3 and SL4

6 posts, 0 answers
  1. Dan Kinchen
    Dan Kinchen avatar
    27 posts
    Member since:
    Mar 2010

    Posted 23 Jul 2010 Link to this post

    Hello,

    I just finished converting my project from SL3/VS2008 to SL4/VS2010.  The project uses MVVM/WCF not RIA services.  In several places in the application I am using a RadGridView with a RadDataPager.  Long story short I have the PageIndex property databound to a property in my ViewModel, and I use that value to pass back to the WCF service whevenver the associated QueryableCollectionView changes (which happens on any page or sort operation).

    This worked fine in SL3.

    In SL4 what happens is basically this:

    1) PageIndex gets updated when the user changes pages to the appropriate index.
    2) PageIndex gets set back to zero
    3) The CollectionChanged event on the QueryableCollectionView is fired
    4) The WCF service gets called with the PageIndex set to zero.

    Result: paging is broken.

    I figured this out by setting a break point on my PageIndex property in my ViewModel.  It gets updated twice before CollectionChanged fires.

    Any suggestions?

    <telerikns:RadDataPager
            x:Name="rdpPager"
            Source="{Binding CommunitiesView}"
            PageIndex="{Binding PageIndex, Mode=TwoWay}"
            NumericButtonCount="5"
            DisplayMode="All"
            AutoEllipsisMode="Both"/>
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 24 Jul 2010 Link to this post

    Hi Dan Kinchen,

    This is very weird since we have not made any changes to the PageIndex of RadDataPager.

    Anyway, could you please prepare and send us a dummy sample project that reproduces this behavior and we will debug it to see what is going on. Thanks in advance.

    We are looking forward to hearing from you.

    Greetings,
    Ross
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Dan Kinchen
    Dan Kinchen avatar
    27 posts
    Member since:
    Mar 2010

    Posted 26 Jul 2010 Link to this post

    Ok, I have built a minimalist project that reproduces the issue.  Where do I send it?  It's larger than the 2MB allowed size in this forum (and it's a zip file).
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 26 Jul 2010 Link to this post

    Hello,

     You can open support ticket. 

    Sincerely yours,
    Vlad
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Macro
    Macro avatar
    1 posts
    Member since:
    Jul 2010

    Posted 21 Aug 2010 Link to this post

    Hi,
    I met the same problem in my program.
    Do anyone have solutions to it?  It is really weird issue and make me headache.
  7. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 23 Aug 2010 Link to this post

    Hi Macro,

    Please open a separate support ticket and send us your sample sample project. Thanks in advance.

    Regards,
    Ross
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner