Jqgrid What events are triggered by pressing ESC while inline editing is in the inside? "The answer is here."

Source: Internet
Author: User
Tags jqgrid

Jqgrid inside the inline edit press Enter and so on should have the event processing, but ESC does not open the event interface, it will trigger what event.

By looking, the answer was found in Http://stackoverflow.com/questions/2718351/jqgrid-inline-editing-event-on-esc-cancel,

The Jqgrid source code for Editrow contains the following handler for the Escape key:

if (E.keycode = = =) {$ ($t). Jqgrid ("Restorerow", rowID, Afterrestorefunc);}

So a event is raised. According to the docs:

Afterrestorefunc if defined This function was called in after the row is restored. To this function we pass the ROWID

So we just need to add code to the Afterresorefunc in Editrow or AddRow.

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.