Reputation: 354
The html of Telerik grid is
<tbody>
<tr>
<td>Strike</td>
</tr>
</tbody>
How to do strikethrough on the word Strike in cell <td>
I've tried
1. <td><strike>Strike</strike></td>
2. <td><span><strike>Strike</strike></span></td>
On front end
<strike>
is coming as <strike>
Due to which it is not working. In code behind I've used HttpUtility.HtmlDecode/Encode. But none of them is working. Kindly suggest
Upvotes: 0
Views: 214
Reputation: 354
Resolved the query. We've handled it in javascript
Once complete view is loaded, we replaced the characters like this
$("#grid_id").html()=$("#grid_id").html().replace(</g,'<').replace(>/g,'>')
Upvotes: 1