0

This is my view:

This is my view

This function show my spinner only on first row edit cell every time even when I clicked on 4th row.

 <script type="text/javascript">
     function Grid(spinner) {

         if (spinner == "refNo1") {
             document.getElementById("refNoLoader").style.display = '';
         }

         else if (spinner == "edit") {
             document.getElementById("editLoader").style.display = '';

     }

    </script> 

I want to display loader on edit button. Is there anyway to do this?

halfer
  • 19,824
  • 17
  • 99
  • 186
nissa khan
  • 23
  • 1
  • 6
  • Possible duplicate of [How to display a loading image until a gridview is fully loaded without Ajax Toolkit?](https://stackoverflow.com/questions/24064079/how-to-display-a-loading-image-until-a-gridview-is-fully-loaded-without-ajax-too) – Ravikumar Aug 29 '17 at 14:30
  • you have to get the row index to where is clicked. –  Aug 29 '17 at 15:00
  • no sir i want to dispaly loader image in gridview only in one cell (edit) – nissa khan Aug 29 '17 at 15:02
  • plz can you explain it by example i m new in JS – nissa khan Aug 29 '17 at 15:08
  • #Asif sir kindly explain with example – nissa khan Aug 29 '17 at 15:09
  • @nissakhan your question is not clear, so please search what your actual problem is. –  Aug 29 '17 at 15:18
  • last two days i tried many things but in vain – nissa khan Aug 29 '17 at 15:25
  • #Asif sir can i talk to u on skype ? – nissa khan Aug 29 '17 at 15:28
  • Please do not ask for private one-to-one help; the point of Stack Overflow is that conversations are held in public, so that future readers may benefit. We ask that posters refrain from txtspk and begging too. If you are not getting any answers, perhaps your question could do with some clarification. – halfer Aug 31 '17 at 11:13
  • Couple of things: an element id is supposed to be unique for the entire document. Your code does not reference a row number so it couldn't possible change the spinner for a specific row. – Christoph Aug 31 '17 at 11:14

0 Answers0