Hi -
I am new to the xamGrid, so please bear with me. I am trying to test the paging functionality with WCF RIA services.
Here's what I've got:
- Simple grid created by drag&drop so DomainDataSource was created for me and set to autoload.
- Paging is turned on.
I am using Fiddler to watch traffic between client and server.
What I'm seeing is this:
When I click to next page, it (correctly) calls the Get service with skip and take (and only calls once!).
So.. how do I get rid of the intial call without skip and take? Any idea why these first two calls show 3 times in Fiddler? Also, when I page to the last page and it doesn't have enough rows to fill, the re-paint of the grid doesn't work right (see below screenshot).
Thanks!!
Any more thoughts after seeing the examples I posted? Thanks!
I tried using the virtual collection (code snippet below). Basically removed the datasource from the XAML and set the grid ItemSource to the VC and handled the ItemDataRequested event. For testing, I just loaded all entities in the VC rather than limit with take and skip. But even at this point I just get a blank grid. I know the service works as I was getting the grid to populate before adding the VC and also debugging the code shows entities loaded in the context.
vc.PageSize = 5
' get the start index and items count for the missing objects
startIndex = e.StartIndex
' the data can be obtained from a service
x.Load(x.GetUserEntitiesQuery)
' load data in the Virtual Collection, so the grid can display it
vc.LoadItems(startIndex, x.UserEntities)
Using version 10.3. Not sure how to check Service Release level?
Here is some sample XAML trying to use paging w/o VirtualCollection. DomainDataSource is default generated by VS2010 using EF and SQL. This is where I see multiple calls between client/server and also the redraw issues when paging or filtering.
Hi,
Could you be more specific with what VirtualCollection issues you faced so that we can help?
Thanks,
Could you post the version of our product you are using (10.1, 10.2, 10.3) and your Service Release level so that I can try to reproduce your issue with the corresponding build?
Also, any information about the settings of the DomainDataSource and the XamGrid paging would be helpful (some code snippets).