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. Image for the cookie policy date

Special characters < > causes data to be become missing in Grid

Hi,
Some of our data gets removed / truncated when added to the Grid.

Say a column has data in it like "<defunct> data" ... when it is loaded into the Grid it shows as "data". When you export the grid it is fine and shown as "<defunct> data". Are special characters causing an issue for the Grid.

Cheers ... Rob.

1 Reply

JK Jayaprakash Kamaraj Syncfusion Team November 4, 2015 08:32 AM UTC

Hi Rob,
We have achieved your requirement using “disableHtmlEncode” property, which is used to disable encoding html elements in records. Please refer to the below code example and Help document as below, 
Code example:

{ field: "CustomerID", headerText: 'Customer ID', validationRules: { required: true, minlength: 3 }, width: 90,disableHtmlEncode:true },

Help document:

http://help.syncfusion.com/js/api/ejgrid#members:columns-disablehtmlencode

sample : http://jsplayground.syncfusion.com/lwt5a5ra

Regards,

Jayaprakash K.



Loader.
Live Chat Icon For mobile
Up arrow icon