using Grid widget how to display an image for a incident column
Content
I have created an Report to display in the CP page.
We can able to display the image during initial load of the page. but when we do sort or search a column in the grid report. we image disaapers.
below is the logic code: i have added the code in the _onReportChanged function.
if(newdata.headers[j].heading=="view"){ // column name
newdata.data[i][j]="<a href='/app/account/questions/detail/i_id/"+newdata.data[i][j]+"'><img src='/euf/assets/Inspina/images/search.jpg'></a>";
//alert(newdata.data[i][j]);
}
view file code :
<td role="gridcell" class="yui3-datatable-cell block">
1