Title: Datagrid - How can I display an image in a Cell? Post by: cp_Burn on May 16, 2013, 12:40:40 PM Hi there
How can I display an image in a Cell? I'm using the grid like this example: http://www.jeasyui.com/tutorial/datagrid/datagrid22.php (http://www.jeasyui.com/tutorial/datagrid/datagrid22.php) and the content of grid have been loaded dynamically. Thanks. Title: Re: Datagrid - How can I display an image in a Cell? Post by: 2plus2 on May 16, 2013, 06:30:07 PM this might be helpful:
http://www.jeasyui.com/tutorial/datagrid/datagrid16.php Another way might be to use the formatter option. pass in the path and image name, and reformat it as an image tag. Title: Re: Datagrid - How can I display an image in a Cell? Post by: cp_Burn on May 17, 2013, 11:29:13 AM Thanks for reply.
I solved this problem returning in select an string like this: '<img src="myimage.png" />'. |