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

OA RIA TotalEntityCount

4 Answers 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 22 Jun 2010, 07:23 AM
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)

4 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 25 Jun 2010, 12:23 PM
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
0
Alex
Top achievements
Rank 1
answered on 28 Jun 2010, 02:54 AM
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)



0
PetarP
Telerik team
answered on 05 Jul 2010, 08:23 AM
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
0
Alex
Top achievements
Rank 1
answered on 13 Jul 2010, 04:49 AM
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)

Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Alex
Top achievements
Rank 1
Share this question
or