I want to execute an action when click event of a delete button in a grid is done. How can I know when is clicked in Javascript?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
(Read IMPORTANT at the end)
Use:
Where
#gridis the id of your grid.If you want to know the data item you can do:
Alternatively, you can define the
commandin thegrid.columnsas:where
myFunctionis:IMPORTANT: You might want to define you own
destroybutton where only the styling is copied from the original one (no other actions / checks). If so define yourgrid.columns.commandas:and then define: