Hi
How to display image in iggrid .
Hello Kiran,
Thank you for posting in the Infragistics forums!
We received your support request concerning displaying images in the igGrid, and this case has been assigned to me. Infragistics is dedicated to helping you solve this issue. Our team and I have done an initial review and I will create a sample to implement this behavior for you. I will get back to you by the end of the day with more information or questions for you.
Using images inside of an igGrid can be done with the use of the template attribute in the column settings of the Grid. For an example, view the code snippet below:
We can see in the above code snippet that the third column will be populated by images. This is done by setting the dataType to 'object' and the template to an image tag with the source set to be read from the "Image" key from the data. In order to get an image to display, we must make sure that there is a valid image pointer in the data which we are reading from under the "Image" key. Valid data for the above columns attribute can be seen below:
Under the "Image" key of the JSON data, we see a valid reference to three .jpg images which are in a Pictures folder in the same directory as our HTML page. I have attached the sample I used to create this behavior to give you a better understanding of this functionality.
Please let me know if there is anything else I can help you with.
Please do not hesitate to contact me if I can be of further assistance.