Looking at the problem from the ASP.NET perspective, there should be a page event that calls a method from the code library you have.
If the code library assembly has a reference to the Telerik.Web.UI
assembly, it can use the RadProgressContext.Current
object to update the progress. However, if the code library does not create a RadProgressManager
object, the code can become error prone.
You can instead prefer exposing an ProcessProgressUpdated
event (or something like that), which the page will consume. The event handler would update the RadProgressContext.Current
object. So, from the perspective of the page, the sequence would be:
- Trigger a page event (e.g. press a button);
- Create the process management object;
- Attach an event handler to the process management object's ProcessProgressUpdated event;
- Start the process;
- Add code to the ProcessProgressUpdated event handler to update RadProgressContext.Current.
I hope this helps.
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.