WCF RIA Services - Take action when loading all data

So, I'm just getting started with .WCF RIA Services and Silverlight.

Here's what I need to do: I need to make a couple of calls to my domain service to download data. So, I use the Load () method for the Context object.

I need to take some action when all requests are complete. I see that I can specify a callback for each individual load, but what I really want to do is register a callback that will be executed when all the loads are completed.

Is there a built-in way to do this using RIA / Silverlight services, or will I need to roll my own?

By the way: I don’t do anything so crazy - I just don’t want my form to be interactive until the data is loaded (I don’t want to block the UI stream, I just want to show the progress of the hampster bar / dance until until all the data has been downloaded)

+3
source share
3 answers

This http://blogs.msdn.com/b/smccraw/archive/2009/07/15/a-net-ria-services-data-load-batch-manager.aspx worked well for me.

If you do not want users to interact with the page, use the activity indicator (I think now it is in the Silverlight Toolkit) to block the application during loading.

+2
source

, .

, , , . , , , .

+1

Something like this link works for you?

0
source

Source: https://habr.com/ru/post/1784628/


All Articles