Grid updates and deletes
Now, we will be making a few minor changes to our example that will allow us to update and delete rows in the grid. We will need to have a frontend and backend to manage this transaction. The highlighted code given here is no big challenge to change in this grid tag. The following changes are to be made:
We set an attribute tag for
edit
mode.We set two attributes for adding in the
delete
functionality. We setdelete
totrue
and pass text in for the visible link on the grid.We set the
onChange
attribute tocfc
and then the method will take the update requests. It will require all the variables to be passed back to the CFC. Apart from this, we have the following code:<html> <head> <title>Grid Example</title> </head> <body> <h2>Grid Example</h2> <cfform name="bob"> <cfgrid name="products" format="html" striperows="yes" pageSize="3" selectMode=...