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

RadDataPager doesn't page QueryableCollectionView

6 Answers 128 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Paulius Putna
Top achievements
Rank 1
Paulius Putna asked on 22 Mar 2011, 05:00 AM
Hello,

I have a problem with RadDataPager binding to QueryableCollectionView source. I used this blog post as an example. Everything like sorting and filtering is working fine, but the data pager is not working at all. I doesn't even fire the paging events to view's codebehind. Due to my projects complexity, I can't make a quick working sample... 

My scenario is that first the collection view has no items and total items is 0, but when populated, total pages and paging buttons gets displayed properly, but not a single paging button responds to clicks. Another strange behavior I notice is that once I click any of the page buttons (1, 2, 3 and so on), the focus goes straight to "GoToNextPage" button and nothing happens. It is very frustrating, because this is the last part I need for my Grid to work properly.

I tried all of the possible solutions in this blog post.

I am using Q3 2010 version (no SP1). Should I consider updating to new version?

Please help!

6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 22 Mar 2011, 08:24 AM
Hello,

Indeed you can use our Q3 2010 SP1 or directly our Q1 2011.

Greetings,
Vlad
the Telerik team
0
Paulius Putna
Top achievements
Rank 1
answered on 22 Mar 2011, 11:10 AM
Do any of those releases have a fix for my problem? I am asking if it is worth upgrading, because I am on a tight schedule and I do not want to waste time now if it is not completely nesscesary.
0
Vlad
Telerik team
answered on 22 Mar 2011, 11:20 AM
Hello,

 Indeed both releases have fix for this problem. 

Kind regards,
Vlad
the Telerik team
0
Paulius Putna
Top achievements
Rank 1
answered on 22 Mar 2011, 11:32 PM
I migrated to Q1 of 2011 and that fixed my problem with data pager not working at all, but now every time I try changing the page, it throws two events to codebehind, one setting the PageIndex to correct value, another reseting it back to 0 and the 0 value gets propagated to the QueryableCollectionView.

I made a workaround for now to not bind the collection to the Pager and using only PageIndex property in view model to monitor the paging, but this could introduce a lot of problems like if I am on the last page and I filter by something... It would return nothing, because starting index would be wrong. That means after any sorting or filtering I need to reset paging...

It would help a ton if blog post example would be updated with latest silverlight and radcontrols so I could take a look what I am doing wrong or maybe there is actually a bug there which prevents me from getting the desired functionality. 

My main idea is just to bind RadGridView and RadDataPager to same collection and not worry about any of that stuff.

Also, another problem I noticed with the CollectionView is that when first binding to QueryableCollectionView the IsBusy indicator doesn't show up for the GridView even if the IsLoading value set to true, so once again I need a separate property on the view model to indicate IsBusy. 
0
Paulius Putna
Top achievements
Rank 1
answered on 22 Mar 2011, 11:38 PM
One other thing I would like to request is to show some very cool and efficient way to get the distinct values for filtering. Now it takes very long time to even show all the values... maybe show how to add isbusy indicator for filter or a much faster way to get and cache those values?
0
Paulius Putna
Top achievements
Rank 1
answered on 26 Mar 2011, 04:11 PM
Please help me out on this... :(
Tags
DataPager
Asked by
Paulius Putna
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Paulius Putna
Top achievements
Rank 1
Share this question
or