I want to add image to my treeGrid. I am getting data from WebAPI. Image is also getting from WebAPI like hex (type - byte) (0x89504E470D0A....). In my treeGrid I think it looks like base64 (iVBORw0KGgoAA....). I want it to show like image.
I am getting data from WebAPI and displaying like:
This is the response from WebAPI:
And the view is like this:
I want that in column PictureContent there will be images instead of symbols.
JDJayakumar Duraisamy Syncfusion Team May 11, 2017 01:08 PM UTC
Please find the response below.
In TreeGrid, we have column template support to render custom columns. We know that HTML img tag have default support to decode base64 image source. Hence, we can use HTML img tag inside the column template to display the encoded images.