This question is locked. New answers and comments are not allowed.
Hi
I have and ID field in a grid, and one of the items has an apostrophe in its content.
As I am trying to call a javascript function via a button or hyperlink, this is proving to be and isssue.
The Boundcolumn template looks like this:
The Id field contains a data item as "JV 'ER"
This is stored in the Json data as an encoded string, but this is decoded when trying to call the javascript function, and the command becomes incomplete. The Ecoded method makes no difference
So how do i either retain the encoding within the clienttemplate or access the data directly to run the javascript?
And no, the data cannot be changed, legacy systems etc. :)
Regards
David
I have and ID field in a grid, and one of the items has an apostrophe in its content.
As I am trying to call a javascript function via a button or hyperlink, this is proving to be and isssue.
The Boundcolumn template looks like this:
columns.Bound(o => o.Id).ClientTemplate("<
a
href=\"javascript:onPopupLinks('<#=Id#>','<#=Description#>')\" class=\"t-button\">Properties</
a
>").Title("Property Links").Encoded(false);
The Id field contains a data item as "JV 'ER"
This is stored in the Json data as an encoded string, but this is decoded when trying to call the javascript function, and the command becomes incomplete. The Ecoded method makes no difference
So how do i either retain the encoding within the clienttemplate or access the data directly to run the javascript?
And no, the data cannot be changed, legacy systems etc. :)
Regards
David