I seem to have problems using a RadProgressArea together with a webservice method called from client side.
If I on the other hand use a code behind function as the way of updating the progress, the updating of the progress works.
I will start with describing the working approach with code behind and then the client side calling a webservice approach.
In the webpage, I have a telerik:RadProgressArea and a RadProgressManager:
I also have an asp:Button like:
In that code behind eventhandler I perform a lot of work. It has a loop where it performs some tasks. Before the loop, I have this code:
After every task, in other words in the end of the loop, I update PrimaryPercent and PrimaryValue like:
and after that loop, the eventhandler ends with
This setup works, the progressbar gets updated as it should.
Here is the a response to Telerik.RadUploadProgressHandler.ashx?RadUrid=22b0e25c-69c9-4be7-8d7e-33b818854f35&RadUploadTimeStamp=1467900709164&:
The non working setup (using a WebService)
I have an aspx file with an identical setup as in the working case.
The web method looks like this:
It seems like RadProgressContext.Current contains the expected data. If I manipulate RadProgressContext.Current.CurrentOperationText in the code behind (in Page_Load), the web service will be able to read that string.
However, the progress will never be updated and then the web service method has run, the progressbar will dissapear as it should.
The polling will not get the expected data but say that InProgress is false.
Here is the a response to Telerik.RadUploadProgressHandler.ashx?RadUrid=a1dcfc89-bd8c-43d3-b88f-718890d7fc04&RadUploadTimeStamp=1467898578437&:
This is a copy of a stackoverflow posting at http://stackoverflow.com/questions/38248183/progressarea-will-not-get-updated-from-webmethod