Good evening, I have problems with the jqgrid + json for displaying images,
I use mysql, there is a table with the url of the image I would like to display on the grid, unfortunately I can not put the url on the grid.
Here we go,
colModel:[
{Name: 'campo_url_img', index: 'url_img', width: 80, align: “left”, sortable: true, sortable: true, editable: true, edittype: 'image', editoptions: {src: 'url of image '}, editrules: {required: false, edithidden: true}}
],
How can I pass the location of src to the grid?
I'm throwing the information on the grid through a vector:
$i=0;
foreach( $vetor as $x => $row ){
foreach( $row as $idEquipament => $valor )
$row[$idEquipament] = utf8_encode($valor);
$responce->rows[$i]['id'] = $row['idEquipament'];
$row[ 'idEquipament' ],
$row[ 'url_img' ]
);
$i++;
}
echo $json->encode($responce);
could you help me? an example?
Thanks
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top