Forums

Forums / Developing Portals / HTML in Grid

HTML in Grid

10 posts, 0 answered
  1. Krishna Hari
    Krishna Hari avatar
    65 posts
    Registered:
    05 Dec 2019
    26 Apr 2023
    Link to this post
    How can I render HTML inside a grid, We have an entity with attributes storing html, and would like to render those when displaying, 
  2. Eric Mann
    Eric Mann avatar
    59 posts
    Registered:
    16 Oct 2020
    26 Apr 2023 in reply to Krishna Hari
    Link to this post
    Yes, we use <a> to provide links that are saved as a field/column in Dynamics. You can also use the Format HTML under the Columns Tab of the grid if you are looking to interact with the record itself via HTML. there are some good examples in the Portal Connector blog under Grids tag. 
  3. Krishna Hari
    Krishna Hari avatar
    65 posts
    Registered:
    05 Dec 2019
    26 Apr 2023 in reply to Eric Mann
    Link to this post
    I meant to ask about rendering html not urls , sorry if i  was not clear, the datg is in html but i would like it to display as html content not show the tags. I have tried setting encode property to true still its showing the tags
  4. Eric Mann
    Eric Mann avatar
    59 posts
    Registered:
    16 Oct 2020
    26 Apr 2023 in reply to Krishna Hari
    Link to this post
    Got it. My point with URL is a text field can be used in Grid in portal to read and display those HTML elements such as <a> <n> <color>, etc. You are going to find more options available using List View than Grids but some features can be applied. You may also consider JavaScript and Bootstrap where image attribute is used which may be similar to your HTML use case: https://www.crmportalconnector.com/blog/post/2019/01/10/how-to-create-different-templates-using-the-list-view-widget 
  5. Krishna Hari
    Krishna Hari avatar
    65 posts
    Registered:
    05 Dec 2019
    26 Apr 2023 in reply to Eric Mann
    Link to this post
    is it possible to escapecrm enabled on list view or grid fields
  6. Eric Mann
    Eric Mann avatar
    59 posts
    Registered:
    16 Oct 2020
    27 Apr 2023 in reply to Krishna Hari
    Link to this post
    I'm not sure what you mean by 'escapecrm'
  7. Krishna Hari
    Krishna Hari avatar
    65 posts
    Registered:
    05 Dec 2019
    27 Apr 2023 in reply to Eric Mann
    Link to this post
    In TPC Text Field, there is a field "EscapeCrmData" and  we had changed it to False  to display html . is there a similar way to do on Grid fields
  8. Eric Mann
    Eric Mann avatar
    59 posts
    Registered:
    16 Oct 2020
    27 Apr 2023 in reply to Krishna Hari
    Link to this post
    Maybe it's a version issue as we are on 6.1 and sitefinity 14 but we are able to add HTML similar to the example here: https://www.crmportalconnector.com/developer-network/forums/developing-portals/html---is-it-possible-to-render-html-content-on-a-text-box   directly in the text field / column value and it renders the HTML in the grid. 
  9. Tom Pawelec
    Tom Pawelec avatar
    25 posts
    Registered:
    21 Oct 2022
    27 Apr 2023 in reply to Krishna Hari
    Link to this post
    Hi Krishna,

    The text box fields on a grid should be able to render your html along with any css.

    Tom
  10. Krishna Hari
    Krishna Hari avatar
    65 posts
    Registered:
    05 Dec 2019
    01 May 2023
    Link to this post
    That did not work, 
10 posts, 0 answered