This is a migrated thread and some comments may be shown as answers.

[Solved] delete executing 2 times

0 Answers 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hetal
Top achievements
Rank 1
Hetal asked on 23 Sep 2012, 01:29 PM
hello
I have assigned short-cut key for delete row of grid. the code is as follows.. using jwerty.js for the same.
//Alt+d to delte new row
        jwerty.key('Alt+d', function (e) {
            console.log("*Membership delete Pressed");
              $(".t-grid-delete").click();
              return false;
          }, "#Membership");

the problem is as I press 'alt+d', it asks for confirmation I press OK, and it again asks for confirmation for 2nd record also. So, how can I avoid this? where am I going wrong?
Tags
Grid
Asked by
Hetal
Top achievements
Rank 1
Share this question
or