EasyUI Forum
October 03, 2025, 12:42:43 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datagrid - How can I display an image in a Cell?  (Read 22276 times)
cp_Burn
Newbie
*
Posts: 4


View Profile Email
« 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 and the content of grid have been loaded dynamically.

Thanks.
Logged
2plus2
Jr. Member
**
Posts: 75


View Profile
« Reply #1 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.
« Last Edit: May 16, 2013, 06:31:38 PM by 2plus2 » Logged
cp_Burn
Newbie
*
Posts: 4


View Profile Email
« Reply #2 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" />'.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!