How do you render Html table in Report?

2 posts, 0 answers
  1. Kamal
    Kamal avatar
    3 posts
    Member since:
    Dec 2016

    Posted 20 Sep 2018 Link to this post

    I have html table stored on my database.











    I created a sqlDataSource on Kendo Reporting and selected the htmlTextBox in order to render the my html code. However only the td element values are populated in a straight line like below

    Name Address John Tokyo

    I want this to be rendered in table format



  2. Todor
    Todor avatar
    411 posts

    Posted 25 Sep 2018 Link to this post

    Hello Kamal,

    In order to render a Table you need to use the native Reporting Table/Crosstab/List item. I'm afraid the HtmlTextBox does not support the Table tag.
    An alternative is to use custom approach like rendering HTML as an Image with third-party tool and using the image via PictureBox item.

    Another workaround would be to use an ObjectDataSource, which data providing class gets the Table defined with the Html code, and based on its structure (i.e. 'tr'/'td' tags withing the Table) creates a properly structured supported object type. The returned object can be used to Create a Dynamic Table/Crosstab/List item.

    I hope the provided information would help.
    Let us know if you have further questions.

    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top