We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to remove the junk data, when the string column content contains angular bracket in JSON mode?

Problem

String column in the Grid displays junk data (_tmplitem) when the content contains angle brackets (<,>, etc.) in it.

Solution

While using jquery templates (jquery.tmpl.js) to render the template in JSON mode Grid, the junkdata (_tmplitem) is added with the angle brackets in the grid data. To resolve this problem in the string columns, replace the columns inner html value with the data of column at runtime by using the QueryCellInfo client side event.

CSHTML

JavaScript

 

Article ID: Published Date: Last Revised Date: Platform: Control:
4255 03/09/2015 03/09/2015 ASP.NET MVC (Classic) Grid
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.