Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Form Questions /

HowTo display a virtual column inside a GridField unescaped?


Reply


2 Posts   630 Views

Avatar
wee-man

Community Member, 21 Posts

3 March 2013 at 9:52am

Hallo,
I have a DataObject with a virtual column (getPathsAsString()). The return value of this does contain HTML code. When this column is displayed in a GridField, the HTML code will be escaped. Does anyone know how to make the GridField not to escape that column?

I've already tried to set a casting to HTMLText for that field. But that doesn't make any difference.

Thanks

Avatar
copernican

Community Member, 189 Posts

8 May 2014 at 2:39am

Anybody looking for help on this subject check out this article [url]http://www.silverstripe-webdevelopment.com/tricks/showing-html-in-gridfields/[/url]. Worked for me.