How to run a javasscript on delete row event of the grid? ...

How to run a javasscript on delete row event of the grid? ...

OriginalPostID-58004

OriginalPostID-58004

  Discussion posts and replies are publicly visible

  • We have to calculate the sum of all the values present in the column of the grid.As soon as the row is deleted we need to calculate sum of values of remaining rows.Example :Let's say I have 3 rows in the grid having values 1,2,3 and their sum is 6. Now,as soon as I delete say 2nd row then I should be able to get the sum of the values in remaining 2 rows that is 4.
  • I am able to capture the event on delete icon of the row; but problem is : lets say we have three rows in a grid and i am clicking one of delete icon then it delete all the rows of the grid insted to delete respective row of delete icon.i am writting below code on load of the form : setTimeout(
              function()
                        {
                        $(".deleteRowIcon").click(
                                            function()
                                                      {
                                                      alert("A row has been deleted");
                                                      }
                                                      );
                        }, 60);