Hi
I wanted to add 2 images as hyperlinks in my jqxgrid, and these are the 3 steps i tried:
1. I tried adding 2 images in a grid in 2 seperate columns.
This worked fine, the height of the rows increased to accomodate the image height.
2. Next I added a hyperlink to 1st of these columns and wrote a function for the hyperlink.
var imagelinkrenderer = function (row, column, value) {
value = ‘‘+”+’‘;
// alert(row+”*”+column+”**”+value);
return value;
}
This worked fine as well.
3. When I tried to add the same value in cellrenderer of both columns, the height of the images gets reduced to 20px (though i can see the top of the images and the hyperlink is also there). Can you please help me understand what i am doing wrong ?
Grid data that I am using is as below (for your reference):
columns: [
{ text: ‘mypic1’, datafield: ‘myObverseImageSmall’, width: 110, cellsrenderer: imagelinkrenderer, sortable: false, filterable: false },
{ text: ‘mypic2’, datafield: ‘myReverseImageSmall’, width: 110, cellsrenderer: imagelinkrenderer, sortable: false, filterable: false },
{ text: ‘my Description’, datafield: ‘myDescription’, width: 300, cellsalign: ‘centre’, cellsformat: ‘c2’, cellsalign: ‘left’ }
]
});
Thanks
Rohit