Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
How to display an image in cell
12/03/2009
17:40
Avatar
hemen
Member
Members
Forum Posts: 12
Member Since:
17/09/2008
sp_UserOfflineSmall Offline

Hi Everyone,

I am trying to display a jpeg image in a column for every row in the grid.

I am using xml to send data from the server side.

I did read a few posts in the forum regarding this but its not clear to me on how to do this.

An example or couple of lines of code would be really appreciated.

Thanks,

Hemen

13/03/2009
04:57
Avatar
hemen
Member
Members
Forum Posts: 12
Member Since:
17/09/2008
sp_UserOfflineSmall Offline

I got it working.

Some how xml didnt work so I switched to JSON and it worked.

Hemen

13/03/2009
17:18
Avatar
cornbread
Member
Members
Forum Posts: 33
Member Since:
28/01/2009
sp_UserOfflineSmall Offline

I've been unable to get this working. Mind sharing some code? TIA, Richard

14/03/2009
18:58
Avatar
hemen
Member
Members
Forum Posts: 12
Member Since:
17/09/2008
sp_UserOfflineSmall Offline

Hi,

I am glad to answer this and hope this helps you.

Make sure you are using version 3.2 or higher.

You can do this in two ways

1)Use afterInsertRow

afterInsertRow : function(rowid,aData)
            {
                jQuery("#list4").setCell(rowid, 'note', "<img src = 'add.jpg'>");
                //alert("hello");
            },

2) Server side JSON data (this can also be static data, javascript var)

{id:"1",invdate:"2007-10-01",name:"test",note:"<img src = 'add.jpg'>",amount:"200.00",tax:"10.00",total:"210"},

Let me know how it goes.

Hemen

14/03/2009
22:16
Avatar
cornbread
Member
Members
Forum Posts: 33
Member Since:
28/01/2009
sp_UserOfflineSmall Offline

THANK YOU! I"ll give it a shot as soon as tony helps me figure out my json woes...

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
49 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information