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 ?
Loading
Jignesh KumarPosted Mar 27, 2023, 11:00 AM
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/
keshav namwadPosted Mar 27, 2023, 8:57 AM
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.
Muhammad Imran AnsariPosted Mar 27, 2023, 3:09 AM
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/