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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

121018 Nov 3,2015 08:49 AM Nov 4,2015 03:32 AM JavaScript 1
loading
Tags: ejGrid
Rob ONeill
Asked On November 3, 2015 08:49 AM

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.

Jayaprakash Kamaraj [Syncfusion]
Replied On November 4, 2015 03:32 AM

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.



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;