After I use the igbtl_addnew () method to Add rows on the client, I find that these new rows are not
The server triggers a row update event, and later tracked the new rows in the webgrid table. CodeFound
Originally, after using igtbl_addnew (), you must use igtbl_activate (g); // G as the client object of webgrid.
In this way, you can add a row update event and correctly set the status of the newly added row for these newly added rows.
With these features, we can manually specify some actions that have been edited.
Some rows have not been edited, but I want him to trigger a row update event when submitting
So what should we do?
Of course, you must have the ID of this row
After obtaining the row's object rowobj, use the following method to specify the row's status
G. recordchange ("modifiedrows", rowobj); // set the edit status of the row to modify
Igtbl_activate (g); // G is the client object of webgrid.
In this way, although the row is not edited on the client, a row update event is still triggered.