Jqgrid How to set null values for cells

Source: Internet
Author: User

Using Jqgrid in the project, you often need to empty the contents of the cell under the scenario used, and the following code is used:

1 $ ("#jqgrid1"). Jqgrid ('setcell'  Column");

Then unexpectedly does not have the function, the value still has, this is impossible Jqgrid does not have this way, therefore did not check the document, looked at the page source code, discovered in the initialization time, does not have the assignment value case, the HTML element content is

1

So I did the following code test:

1 $ ("#jqgrid1"). Jqgrid ('setcell'  Column'a ');

After that, the value of the cell is emptied, and the value of the HTML element is looked at, as is the case without assigning a value.

Later, found Jqgrid in the process of use, why the assignment "has no effect, after reviewing the Setsell method, learned that this method has a CSS setting, if a cell only want to set CSS, is not need to know the current cell value, so Setsell set" To not change the current value, from here it can be inferred that there is no value in C # that can specify some parameters, must be one of the settings.

Jqgrid How to set null values for cells

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.