tags:

views:

338

answers:

0

i want to add a picture in qjgrid field and i do like this:

loadComplete: function()
{
var ids = jQuery("#list").getDataIDs();
for(var i=0;i<ids.length;i++)
{
 var cl = ids[i];
 var rowdata = jQuery("#list").getRowData(cl);
 var imgAddress=getPicAddress(rowdata.Status);
 p="<img alt='status' src='../images/Status/yellow.gif' />";
 jQuery("#list").setRowData(ids[i],{Status:p})
}
},

in the Status column doesn't appear any picture but it writes "stautus" ( the alt of the picture)

if i want to add a button, it works like this:

b = "<input style='height:20px;width:40px;' type='button' value='X'/> ";
jQuery("#list").setRowData(ids[i],{Status:b})

any tips?

thanks.

SOLVED