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

Allow html in some columns

1 Answer 572 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 27 Apr 2017, 04:32 PM

Hi guys

I have a database that has been populated with raw html programmatically, but when I try to inline text-edit those fields to tweak content, it fails to 'Update' because the data in 2 columns contains some raw html. How can I tell radgrid to allow it for specific columns?

I (as webmaster) am not worried about users hacking because only I have (secured) access to this function.

Thanks for your help!

 

Clive

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 May 2017, 03:30 PM
Hi,

If you need to edit/load/show/render HTML in RadGrid, you can use RadEditor for this purpose:

GridHTMLEditorColumn column - http://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/columns/column-types/defaultcs.aspx and http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/columns/column-types#gridhtmleditorcolumn

Other demos with standalone RadEditor:
http://demos.telerik.com/aspnet-ajax/editor/examples/edittemplate/defaultcs.aspx 
http://www.telerik.com/forums/radeditor-will-not-render-html-within-radgrid

There is also a column type named GridBoundColumn which offers HtmlEncode property which you can try.


Best regards,
Rumen
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or