Reputation: 119
I use jqGrid 4.13.4-pre - free jqGrid by Oleg.
cellsubmit : 'remote',
datatype: 'json',
How to solve problem in a line of the tags when cell editing?
Upvotes: 1
Views: 315
Reputation: 221997
I suppose that you highlighte the searched text in the way close to described here. As the result the text of the cell contains HTML fragments with <span class="ui-state-highlight">...</span>
.
You can use formatCell
callback to make any changes in the editing cell value. The callback like the following should solve your problem:
formatCell: function (rowid, cellname, value) {
return $.jgrid.stripHtml(value);
}
By the way I recommend to update jqGrid from "4.13.4-pre" version to the corresponding released version "4.13.4" directly after publishing of the new release. Alternatively you can update to the latest 4.13.5-pre from GitHub.
Upvotes: 1