0
votes

If column text contains characters like \<a only first character, \ is displayed in grid. Remaining characters are not visible. In edit mode this data is displayed wrongly as \<a< td=""></a<> If \<a is entered to cell using inline editing and saved, only \ is visible in screen.

jqGrid setting autoencode: true is used. Data is read from ASP .NET 2 MVC controller from server in json format like

{"total":337,"page":3,"records":10094,"rows":[
{"id":"i88","cell":["\\\u003ca"] }
]
}

How to show and edit text like \<a in jqGrid 4.1.1 ?
If I remember properly, it worked in earlier jqGrid versions. Maybe jqID function changes proposed by Oleg caused this regression.

1

1 Answers

2
votes

I suppose, that you just forgot to use the jqGrid option autoencode: true . If I use it I could reproduce the problem which you describe: see the demo and this one.

UPDATED: Your current test case can be reduced to the following demo which has formatter:null in the colModel. If you remove the property the autoencode: true will work for the column.