RAHUL PATIL

RAHUL PATIL

  • NA
  • 145
  • 12.4k

Get a loader when i click on a button

Oct 10 2016 7:41 AM
Hi all,
 
I want to add a loader when i click on get data button and once all data is loaded in grid view then loader need to disappear automatically.
 
 

Answers (5)

1
Ananth G

Ananth G

  • 0
  • 2.5k
  • 805.1k
Oct 21 2016 12:51 AM
Please Refer Below Link
http://malsup.com/jquery/block/
 
http://www.aspsnippets.com/Articles/Show-Loading-Busy-Indicator-Spinner-with-Overlay-with-jQuery-AJAX-example.aspx 
0
Bikesh Srivastava

Bikesh Srivastava

  • 81
  • 23.9k
  • 3.5m
Oct 21 2016 6:59 AM
http://www.aspsnippets.com/Articles/Show-Loading-Busy-Indicator-Spinner-with-Overlay-with-jQuery-AJAX-example.aspx
0
Midhun Tp

Midhun Tp

  • 136
  • 13.2k
  • 1.5m
Oct 10 2016 1:31 PM
Hi,<br><br> Can you pleae specify what you mean by automatically hiding after save button functions? If you want to acheive that you may need to use update panel. Please note that system.threading is only used to show the loader for a minimum period, else it will be like a flash which comes and go quickly. You can remove that if you want. Please follow below article-<br> http://www.aspsnippets.com/Articles/Show-Loading-Progress-Indicator-using-GIF-Image-when-UpdatePanel-is-updating-in-ASPNet.aspx <br><br> You can also use it without update panel, but you may need to remove loader image manually by code like making the div's display as none after all codes are executed.
0
RAHUL PATIL

RAHUL PATIL

  • 0
  • 145
  • 12.4k
Oct 10 2016 10:21 AM
Hi
I dont want System.Threading.Thread.Sleep(5000); this manually.
i want dynamic.
That's why i saying that when the i click on button than loader is aapearand once the action complete in save button then loader is auto disappear.
0
Rajeev Punhani

Rajeev Punhani

  • 340
  • 4.7k
  • 1.6m
Oct 10 2016 10:13 AM
Hi Rahul,
Please see the below link.
http://www.aspsnippets.com/Articles/Display-loading-progress-image-when-Page-Loads-or-does-PostBack-using-ASPNet.aspx

If the above solution is helpful then,accept the answer.