RadProgress during WCF call

2 posts, 0 answers
  1. Daniel
    Daniel avatar
    3 posts
    Member since:
    Jul 2013

    Posted 30 Oct 2013 Link to this post

    I am working on an Import User function, which allows multiple users created for our application at one time (in Active Directory)

    When the Import button is triggered using an Ajax call, the grid is processed during the postback, the values are retrieved from the grid, and a collection of user objects is passed to a WCF service.

    While that service is processing the collection (anywhere from 1 - 250 users, or potentially more), I would like to be able to notify the user how many users have been imported.

    The users are being created in Active Directory which slows down the process.
    I'm not sure if the Ajax timed-out, but when I refreshed my grid, half the users showed up, and after a few other refreshes they all showed up.

    My problem, is that I do not have a view of what is happening during the import process.  For small batches it would be relatively quick.

    But for larger batches, it looks like the Ajax Loading Panel will eventually stop, the grid will be refreshed, even though all the users have not completed being processed (created in Active Directory).

     - How can I accomplish getting either progress synchronously, or asynchronously while the WCF service continues to process the user import request? 

     - And is there an demo, of getting the progress of a WCF service that is processing a collection of objects?
  2. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 04 Nov 2013 Link to this post

    Hi Daniel,

    The RadProgressArea has a Progress Data object, which holds the data for the current progress. If you update this object the progress area will be updated too. You may try to configure your WCF service to return the progress after each processed row. Then use jQuery to make calls to get the progress data from the service and update the progress data object.

    Hristo Valyavicharski
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top