Hi,

 I need to convert the data from HTML to plain text in DataGrid

Rest data fetched look like :- 

<b>Type:</b> Supplier<br><b>Department:</b> Information Technology<br><b>Date:</b> 2017-02-14<br><b>Purpose:</b> Site visit for CCTV Project<br><b>Number of people:</b> 3<br><b>Company Name:</b> Micrologic<br><b>Names and Position:</b>

I want to display it as below

Type: Supplier

Department: Information Technology 

Date: 2017-02-14



Thank you

Regards,

Nandini







 



I'm probably thinking way too easy but can't you just put that html string in an expression with escape set no No?

Stefano Valente wrote:

I'm probably thinking way too easy but can't you just put that html string in an expression with escape set no No?

Hi Stefano,

But I want it for GridcolumnText , and I am unable to use the expression in the GridColumn cell.




I checked the text column. it contains an expression with escape set to yes.

In other words: You can't do what you want unless you clone the datagrid and change the escapt content of the datacolumn text.

Solution

Hi Nandini,

Have you checked out the DataGrid demo? There's an Advanced GridColumn that should fit your needs, since you can feed it raw HTML and it will process it properly:

https://afonsobc.outsystemscloud.com/DataGridSample/AdvancedSamples.aspx?(Not.Licensed.For.Production)=

I believe it's the second example (Image Column) in the Advanced Samples page.

Solution

Afonso Carvalho wrote:

Hi Nandini,

Have you checked out the DataGrid demo? There's an Advanced GridColumn that should fit your needs, since you can feed it raw HTML and it will process it properly:

https://afonsobc.outsystemscloud.com/DataGridSample/AdvancedSamples.aspx?(Not.Licensed.For.Production)=

I believe it's the second example (Image Column) in the Advanced Samples page.

Thank you Afonso