I am using Form Editing and Inline Editing in my grid (jqGrid 4.5.2). When I have an editable column and then open up the form, I do see the HTML code instead of the value. The screenshot shows what I mean.
If no field is editable in the corresponding row, all is fine. I have read somewhere, I shall not use Form and Inline editing together, but only remember vaguely. However, actually all is working fine, except in this particular situation.
Can I reset the whole row to readonly (text) before I create the Form Editing display? Any other solutions?
-- Edit 1: Oleg's answer ---
I have checked / debugged into function restoreInline() and noticed two things:
- I do not have consecutive row ids, but something like 1,2,4,9 (my DB primary keys). They are unique, but some numbers are missing in between. As a result the condition
if ($t.p.savedRow[i].id == rowid)is not fulfilled andrestoreRownot called at all. Can't I have such gaps in the ids? Never noticed an issue with that before. - I did a crosscheck with the first row and id "1". In this case
$($t).jqGrid('restoreRow',rowid)is called, but I still see the "HTML code" in my field.
-- Edit 2 --
Have explicitly called jqGrid('restoreRow',rowid) in beforeShowForm, but with no success.