In webgrid, how does one trigger a row update event on the server after the client adds a row?

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.