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

[Solved] How can I have my grid not encode string for column?

2 Answers 90 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.
Matthew
Top achievements
Rank 1
Matthew asked on 04 Oct 2011, 05:04 PM
I am passing html (links and other valid html) that I want to display with my grid model I am sending over ajax.  I want this HTML to display properly, but I do NOT want to use a Client Template to do this because it has a lot of conditional logic that is not easy to work with on the client side, so I would rather just pass the HTML and have the grid render the HTML correctly.

The problem is that the grid is html encoding the string.  While I understand the reasons for this, I have full control over the generation of the html string I am generating and it is guaranteed to be safe, and therefore I would like to know how to keep the html decoded and displayed properly on the grid.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 04 Oct 2011, 05:09 PM
Hello Matthew,

Bound columns provide an Encoded() setting:

http://www.telerik.com/help/aspnet-mvc/m_telerik_web_mvc_ui_fluent_gridboundcolumnbuilder_1_encoded.html

Regards,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Matthew
Top achievements
Rank 1
answered on 04 Oct 2011, 05:12 PM
Not sure how I missed that.  Thanks!
Tags
Grid
Asked by
Matthew
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Matthew
Top achievements
Rank 1
Share this question
or