General Category > Help for ParamQuery Grid (free version)
retrieve raw (non-HTML escaped) text after cellsave?
(1/1)
argo:
I'm checking row values after the cellsave event and, if required, submitting them to the server to be updated. My pqgrid data comes from a json dataset loaded from the server when initialized. Here's an example of how I'm retrieving the updated data in the cellsave event:
var myUpdatedValue = ui.data[rowIndx].myProperty;
The problem is that the value returned from ui.data is the HTML escaped content. For example, if someone types an ampersand it come back as "&" rather than &. How can I retrieve the unescaped content of the cell?
paramvir:
pqGrid doesn't modify the data in any way, this might be due to default contenteditable editor in the grid.
Either you can unescape the content yourself
I found a link after a bit of googling http://stackoverflow.com/questions/3700326/decode-amp-back-to-in-javascript
or you can use custom editor i.e. input textbox or textarea.
Navigation
[0] Message Index
Go to full version