Author Topic: html code in data does not get renderd  (Read 2070 times)

arbyter

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 43
  • Retired IT Guy
    • View Profile
html code in data does not get renderd
« on: March 08, 2019, 08:22:41 pm »
hello
my data contains html code and want to have it rendered.
But PQGrid shows the sourcecode.
I modifiied example "row and cell styles", there it renders. (see attached printscreen)
https://next.plnkr.co/edit/Hysibr1C6QgJCjaD?preview
« Last Edit: March 08, 2019, 09:51:26 pm by arbyter »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: html code in data does not get renderd
« Reply #1 on: March 08, 2019, 11:21:47 pm »
Either use dataType: "html" or use column.render callback to inject html.

https://next.plnkr.co/edit/R0rBLnlWSTEw8tjM