EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
October 03, 2025, 12:44:50 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Datagrid - How can I display an image in a Cell?
Pages: [
1
]
« previous
next »
Print
Author
Topic: Datagrid - How can I display an image in a Cell? (Read 22278 times)
cp_Burn
Newbie
Posts: 4
Datagrid - How can I display an image in a Cell?
«
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
Re: Datagrid - How can I display an image in a Cell?
«
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
Re: Datagrid - How can I display an image in a Cell?
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...