How can we show running Total, Processed, Pending data while browsing page. On button click another server api called and data pulled in our system. Those data we got but after completion of data fetching. We need to show data on going fetching in between also on running same page How ?
How can we show current Total, Processed, Pending data while browsing.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Mar 26, 2023, 11:09 PM EDT
You can use JavaScript and AJAX to make asynchronous calls to the server-side API and update the UI with the running total, processed, and pending data as it is being fetched. I have created a fiddle example, you can check from the below link;
https://jsfiddle.net/L29s0ctj/
keshav namwad18 reputationPosted Mar 27, 2023, 4:57 AM EDT
Sir , When On click of button another server api called and data pulled in our system. Those data we got but after completion of data fetching. We need to show data on going fetching in between also on running same page.
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 27, 2023, 7:00 AM EDT
Hello Keshav,
You mean you want to so progress bar for your request ?
API call runing then you want to display 1000 records fetched then next 1000 records out of 5000 records.
Please check something like below,
https://www.c-sharpcorner.com/article/how-to-check-long-server-side-process-progress-in-real-time/