Forum


17:40

17/09/2008

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
18:58

17/09/2008

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
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66