RadDataPager doesn't page QueryableCollectionView

7 posts, 0 answers
  1. Paulius Putna
    Paulius Putna avatar
    16 posts
    Member since:
    Feb 2010

    Posted 22 Mar 2011 Link to this post

    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!
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 22 Mar 2011 Link to this post

    Hello,

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

    Greetings,
    Vlad
    the Telerik team
  3. DevCraft banner
  4. Paulius Putna
    Paulius Putna avatar
    16 posts
    Member since:
    Feb 2010

    Posted 22 Mar 2011 Link to this post

    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.
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 22 Mar 2011 Link to this post

    Hello,

     Indeed both releases have fix for this problem. 

    Kind regards,
    Vlad
    the Telerik team
  6. Paulius Putna
    Paulius Putna avatar
    16 posts
    Member since:
    Feb 2010

    Posted 22 Mar 2011 Link to this post

    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. 
  7. Paulius Putna
    Paulius Putna avatar
    16 posts
    Member since:
    Feb 2010

    Posted 22 Mar 2011 Link to this post

    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?
  8. Paulius Putna
    Paulius Putna avatar
    16 posts
    Member since:
    Feb 2010

    Posted 26 Mar 2011 Link to this post

    Please help me out on this... :(
Back to Top
DevCraft banner