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