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

RadDataPager.PageIndex behavior changed between SL3 and SL4

5 Answers 75 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Dan Kinchen
Top achievements
Rank 1
Dan Kinchen asked on 23 Jul 2010, 09:58 PM

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"/>

5 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 24 Jul 2010, 01:05 PM
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
0
Dan Kinchen
Top achievements
Rank 1
answered on 26 Jul 2010, 03:25 PM
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).
0
Vlad
Telerik team
answered on 26 Jul 2010, 03:29 PM
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
0
Macro
Top achievements
Rank 1
answered on 21 Aug 2010, 08:50 AM
Hi,
I met the same problem in my program.
Do anyone have solutions to it?  It is really weird issue and make me headache.
0
Rossen Hristov
Telerik team
answered on 23 Aug 2010, 09:26 AM
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
Tags
DataPager
Asked by
Dan Kinchen
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Dan Kinchen
Top achievements
Rank 1
Vlad
Telerik team
Macro
Top achievements
Rank 1
Share this question
or