Paging/PullAdjustment with Enumerate endpoint
Hi, Has anyone tried using FIM webservice API to fetch user records and display them in a gridview? I have some thousands of records to display in the GridView, but due to the API eumeration behaviour it is taking lot of time to see the result on the screen. I am able to bind the enumerated RmPerson collection to the gridview, but I want to control the number of records enumerated. I want to enumerate first 20 records and display them in gridview's first page and then on click of gridview's next page icon fetch next set from 21 to 40 and so on. Is this possible? Thanks.
October 6th, 2011 9:12am

Instead of binding to that Collection directly, perhaps you could create an ObjectDataSource (and possibly a Paging Data Class behind it) in front of your data. I'd have to know more about the data you're returning, if it is a full set of data you'll be using frequently, or just a one-time use type of collection... This is a pattern i've seen used for SQL-based data so it may not work in your case, but wanted to throw it out there as food for thought.. Frank C. Drewes III - Consultant: Certified Security Solutions - My blog: http://www.css-security.com/author/fdrewes
Free Windows Admin Tool Kit Click here and download it now
October 6th, 2011 10:44pm

Frank, I am using FIM2010client to fetch user records. Doing so as described in the first post I facing problem to simulate paging behaviour. One another question is how to get the count of IEnumerable <RmResource> collection without actually going through the "MoveNext" method? Thanks
October 7th, 2011 11:21am

Frank, I am using FIM2010client to fetch user records. Doing so as described in the first post I facing problem to simulate paging behaviour. One another question is how to get the count of IEnumerable <RmResource> collection without actually going through the "MoveNext" method? Thanks
Free Windows Admin Tool Kit Click here and download it now
October 7th, 2011 6:16pm

I did some tweaking in the fim client code to get the count, not so elegant but meets my needs. Closing the thread as I did not get further responses and Thanks
December 12th, 2011 8:17am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics