OA RIA TotalEntityCount

Thread is closed for posting
5 posts, 0 answers
  1. Alex
    Alex avatar
    141 posts
    Member since:
    Mar 2010

    Posted 22 Jun 2010 Link to this post

    Hi again (I'm asking quite a few questions today)
    I've noticed that whilst running RIA with OA, the total entity count does not quite return correctly.


    e.g. I have my Domaindatasource_loadingdata event do this:
    e.Query.IncludeTotalCount = true;

    But no matter what I do, it always returns the total entitycount==entitycount
    (e.g. If i query 3/100 , it says the total is 3 rather then 100)



    (This feature works fine on ADO, but no on AO, both using an MS SQL express db)
    (With out the total entity count, the paging, max page count will always be wrong, which causes other issues as well)
    (*edit* Also, it does not cache correctly, e.g. from page 1, goto page 2 then 3, then back to 2, it should be cached but it isn't, I suspect this is related to the total entity count thou, as page 1 seems to cache fine)
  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 25 Jun 2010 Link to this post

    Hi Alexander Sun,

    We indeed had some problems in the area of the Total count property. Can you please download our latest version and see if your problem is fixed there. We look forward to your replay.

    Greetings,
    Petar
    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. Alex
    Alex avatar
    141 posts
    Member since:
    Mar 2010

    Posted 27 Jun 2010 Link to this post

    I just downloaded version

    Telerik_OpenAccess_ORM_2010_1_624_dev

    And the issue is still present (Namely, Totalentitycount = entity count, instead of ACTUAL total entity count)

    And I'm using loadsize defined in the XAML's domain data source (loadsize 10, pagesize 5 both on DDS, and total entity count is 10, instead of ~29)



  4. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 05 Jul 2010 Link to this post

    Hi Alexander Sun,

    It seems that the problem you have encountered is indeed not fixed yet. We will do our best to fix it for the next release. Please find your Telerik points updated for bringing this issue to our attention.

    Greetings,
    Petar
    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
  5. Alex
    Alex avatar
    141 posts
    Member since:
    Mar 2010

    Posted 12 Jul 2010 Link to this post

    Just some extra info,

    It turns out the total entity count is only PARTIALLY broken. In that, by default, my RIA service is sorted by date, and the radgridview its bound to is "unsorted". But if I sort the grid view, then it will give the correct total entity count. (And if I make it unsorted again, it will give the incorrect count)

Back to Top