This is a migrated thread and some comments may be shown as answers.

[Solved] Content column rendered as HTML.

3 Answers 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Fëanor
Top achievements
Rank 1
Fëanor asked on 20 Apr 2010, 02:52 PM
Greetings friends,

      I am having difficulties in adding HTML content to a column. The contents of this column is "<p> Hello </ p> <p Test </ p>", and would like it to be rendered as HTML. I tried to put the option "Encode (true)" but did not work. Does anyone have any suggestions?

Code:
columns.Bound(p => p.RecadoInfo.DsRecado).Title("Recado").Encode(true).Width(80);

Output:
<p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p>

Expected
:
hello
hello
hello
hello
hello

Thanks

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 20 Apr 2010, 02:58 PM
Hi Fëanor,

Encoded(true) means that the contents must be encoded. You need Encoded(false).

All the best,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Fëanor
Top achievements
Rank 1
answered on 20 Apr 2010, 03:29 PM
It does not work.
Continues to show the form of text, not interpreted HTML.
0
Atanas Korchev
Telerik team
answered on 20 Apr 2010, 03:50 PM
Hi Fëanor,

You are probably using an older version. Try the build attached in this thread.

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Fëanor
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Fëanor
Top achievements
Rank 1
Share this question
or