renders incorrectly as shown below with a mix of a double quote and single quote on the parameter
Any ideas on how to get the proper single quotes around this variable?
7 Answers, 1 is accepted
Try using escaped double quotes instead:
the Telerik team
This works perfectly fine when the string does not have any special characters.
Say for instance, the OrderName = D'Sample OrderName, it fails. How do we escape the special characters in this case so that it passes the actual values to the jQuery Function.
Hello, I have a similar situation and I'm using the code below:
columns.Bound(p => p.websiteUrl).Title("Website URL").ClientTemplate("<a onclick=\"Products_Read('#= websiteUrl #')\" href='\\#'>#= websiteUrl #</a>").;
But the link doesn't work. Can someone please tell me how to get a working url when clicked on it?
It displays a hyperlink work which doesn't.
Thanks in advance!
Please check out the article below that illustrates how you can add action link to the Grid ClientTemplate.