Nov 25, 2009, 3:07 PM
[CLOSED] HTML encoding with grid - cannot send a value
Hi,
I have a grid panel with a JSON store. One of the record fields type is
string. If the following value is returned in that column by the store,
then the load exception is raised on the client side (C# code):
Whether I do HtmlEncode or not before sending it to the client, it
doesn't matter, because I always end up with " in the string.
This when sent to the client gets converted to just " (double quotes) and this
character included in the JSON data makes the whole JSON data invalid (that's because the string values in JSON are enclosed in double quotes).
How can I send such a value to the grid?
Regards,
Tadeusz
I have a grid panel with a JSON store. One of the record fields type is
string. If the following value is returned in that column by the store,
then the load exception is raised on the client side (C# code):
string value = "\""";
Whether I do HtmlEncode or not before sending it to the client, it
doesn't matter, because I always end up with " in the string.
This when sent to the client gets converted to just " (double quotes) and this
character included in the JSON data makes the whole JSON data invalid (that's because the string values in JSON are enclosed in double quotes).
How can I send such a value to the grid?
Regards,
Tadeusz