Hello,
in my ASP.NET MVC application I have a Kendo Button that is calling a controller action. While this action is working I'm showing a Kendo progress control. The controller action is a long running action that is updating several database items. In addition to my current solution I'm searching for a solution to show the progress of the long running action (e.g. display "Updated x of y items").
This is extract of my current solution:
View:
@(Html.Kendo().Button() .Name("updateItems") .Content("Update items") .Events(events => events.Click("onClickUpdateItems")))<script> function onClickUpdateItems() { kendo.ui.progress($("#content"), true); var items = getAllItems(); $.ajax({ type: "POST", url: "@Url.Action("UpdateItems", "Item")", data: JSON.stringify({ items: items }), contentType: "application/json" }) kendo.ui.progress($("#content"), false);</script>
In the corresponding controller action I iterate over all passed items. While the action is running I want to show the user how many items have been processed. Is there any possibility to realise this?
Regards
Raphael
