2017.7.25 Jqgrid can't get data in edit state, get HTML code

Source: Internet
Author: User
Tags jqgrid

The page is as follows:

After checking 555, click the Delete button below and call the following code:

The final call is Jqgrid's getRowData () method:

However, the runtime found that the value of the key could not be obtained and it could not be deleted correctly. gets the HTML code.

The reason is that the cells in the edit state Jqgrid cannot get the data through the GetRowData method. Reference from:jqgrid cell/row edit mode GetRowData How to get data rows

There are several solutions, because my page is all the additions and deletions, are checked, and then select the bottom to pop up the dialog box, so the table column is not required to edit the state. The column is then changed to non-editable .

After the modification, tick 555, you can see that is in a non-editable state, and then delete, get the column value.

2017.7.25 Jqgrid can't get data in edit state, get HTML code

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.